From 00ff16a5aef32a795fb15142ddb7499c78a0a686 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 15 Jun 2025 06:45:54 -0700 Subject: [PATCH] Android permission rationale --- lib/preferences.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/preferences.dart b/lib/preferences.dart index f86740e..f310624 100644 --- a/lib/preferences.dart +++ b/lib/preferences.dart @@ -88,6 +88,12 @@ class Preferences { disableStopDetection: instance.getBool(stopDetection) == false, pausesLocationUpdatesAutomatically: instance.getBool(stopDetection) == false, fastestLocationUpdateInterval: fastestLocationUpdateInterval > 0 ? fastestLocationUpdateInterval : null, + backgroundPermissionRationale: bg.PermissionRationale( + title: "Allow {applicationName} to access this device's location in the background", + message: "For reliable tracking, please enable {backgroundPermissionOptionLabel} location access.", + positiveAction: "Change to {backgroundPermissionOptionLabel}", + negativeAction: "Cancel" + ), ); }