-
Notifications
You must be signed in to change notification settings - Fork 262
Open
Description
Required Reading
- Confirmed
Plugin Version
4.16.12
Mobile operating-system(s)
- iOS
- Android
Device Manufacturer(s) and Model(s)
iPhone 11
Device operating-systems(s)
iOS 26.0
What do you require assistance about?
I tested in debug mode using simulators, and when I select a city run from the location settings, it triggers events even after the app is killed. But when I publish it to TestFlight, the events are not triggered after the app is killed.
[Optional] Plugin Code and/or Config
bg.BackgroundGeolocation.ready(bg.Config(
reset:
true,
url: "$baseUrl${ApiEndpoints.locations}",
debug: kDebugMode,
logLevel: bg.Config.LOG_LEVEL_VERBOSE,
desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
distanceFilter: Platform.isAndroid ? 0 : locationTolerance,
disableElasticity: false,
isMoving: true,
stopOnStationary: false,
disableStopDetection: true,
pausesLocationUpdatesAutomatically: false,
allowIdenticalLocations: true,
locationUpdateInterval: intervalMinutes * 60000,
fastestLocationUpdateInterval: intervalMinutes * 60000,
backgroundPermissionRationale: bg.PermissionRationale(
title:
"Allow {applicationName} to access this device's location even when the app is closed or not in use.",
message:
"This app collects location data to enable recording your trips to work and calculate distance-travelled.",
positiveAction: 'Change to "{backgroundPermissionOptionLabel}"',
negativeAction: 'Cancel'),
autoSync: true,
stopOnTerminate: false,
startOnBoot: true,
enableHeadless: true,
preventSuspend: true,
params: {
"EmployeeId": context.read<UserProvider>().loginResponse!.employeeId,
},
headers: {"Authorization": "Bearer ${context.read<UserProvider>().loginResponse!.ticket}"},
heartbeatInterval: intervalMinutes * 60,
))
[Optional] Relevant log output
Metadata
Metadata
Assignees
Labels
No labels