twonly-app/lib/src/services/location_metadata.service.dart
otsmr 351d82c6d7
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
allow to store the location in memories
2026-09-11 18:02:09 +02:00

13 lines
489 B
Dart

import 'package:flutter/services.dart';
class LocationMetadataService {
static const _channel = MethodChannel('eu.twonly/location_metadata');
/// Opens the native permission sheet only after the user enables the switch.
/// Approximate/reduced access is rejected because this feature promises a
/// precise capture location.
static Future<bool> requestPrecisePermission() async {
return await _channel.invokeMethod<bool>('requestPrecisePermission') ??
false;
}
}