Logs
```
await bg.BackgroundGeolocation.ready(
bg.Config(
reset:
true, // <-- lets the Settings screen drive the config rather than re-applying each boot.
// Convenience option to automatically configure the SDK to post to Transistor Demo server.
// Logging & Debug
debug: false,
logLevel: bg.Config.LOG_LEVEL_VERBOSE,
// Geolocation options
desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
distanceFilter: 10.0,
// Activity recognition options
stopTimeout: 5,
backgroundPermissionRationale: bg.PermissionRationale(
title:
"Allow {applicationName} to access this device's location even when the app is closed or not in use.",
message: SizeConfig().isTablet(Get.context!)
? "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tThis app collects location data to enable recording your campus location"
: "This app collects location data to enable recording your campus location",
positiveAction: 'Change to "{backgroundPermissionOptionLabel}"',
negativeAction: 'Cancel'),
// HTTP & Persistence
autoSync: true,
disableLocationAuthorizationAlert: true,
// Application options
stopOnTerminate: false,
startOnBoot: true,
enableHeadless: true,
heartbeatInterval: 60,
activityRecognitionInterval: 0,
disableMotionActivityUpdates: true, // Ensure this is set as true
isMoving: true, // Ensure tracking starts immediately
),
)
```
Your Environment
flutter doctor
):Expected Behavior
Actual Behavior
Context
Trying to ask permission of geolocation
-->
Logs
``` await bg.BackgroundGeolocation.ready( bg.Config( reset: true, // <-- lets the Settings screen drive the config rather than re-applying each boot. // Convenience option to automatically configure the SDK to post to Transistor Demo server. // Logging & Debug debug: false, logLevel: bg.Config.LOG_LEVEL_VERBOSE, // Geolocation options desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH, distanceFilter: 10.0, // Activity recognition options stopTimeout: 5, backgroundPermissionRationale: bg.PermissionRationale( title: "Allow {applicationName} to access this device's location even when the app is closed or not in use.", message: SizeConfig().isTablet(Get.context!) ? "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tThis app collects location data to enable recording your campus location" : "This app collects location data to enable recording your campus location", positiveAction: 'Change to "{backgroundPermissionOptionLabel}"', negativeAction: 'Cancel'), // HTTP & Persistence autoSync: true, disableLocationAuthorizationAlert: true, // Application options stopOnTerminate: false, startOnBoot: true, enableHeadless: true, heartbeatInterval: 60, activityRecognitionInterval: 0, disableMotionActivityUpdates: true, // Ensure this is set as true isMoving: true, // Ensure tracking starts immediately ), ) ```