-
Notifications
You must be signed in to change notification settings - Fork 262
Open
Description
Required Reading
- Confirmed
Plugin Version
4.16.9
Mobile operating-system(s)
- iOS
- Android
Device Manufacturer(s) and Model(s)
Oppo CPH2385, CPH2579. Samsung SM-A155F, SM-A047F
Device operating-systems(s)
Android 13, 14, 15
What do you require assistance about?
After a recent investigation had me going back through previous location data I noticed quite a number of instances of very bad location data, and as initial reports had it for drivers using Android 14, I assumed Battery Optimisation and did work to manage that.
Further investigation also noted that the same bad data is coming through with older version of Android, the Oppo Phones listed are 100% bad data, as for the rest only some of the devices are getting bad data.
All of the Samsung Devices with the issue are on Android 13, where's the Oppo ones are on 13, 14 and 15.
I am not sure what next to look at to try and resolve this.
Thanks
[Optional] Plugin Code and/or Config
bg.Config(
desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
distanceFilter: 25.0,
stopOnTerminate: false,
startOnBoot: false,
allowIdenticalLocations: false,
foregroundService: true,
logLevel:
kDebugMode ? bg.Config.LOG_LEVEL_INFO : bg.Config.LOG_LEVEL_OFF,
preventSuspend: true,
heartbeatInterval: 60,
autoSync: true,
debug: kDebugMode,
url: "https://${F.trackingApiUrl}/api/tracking",
method: "POST",
httpRootProperty: ".",
extras: BackgroundLocationExtras.initial().toJson(),
showsBackgroundLocationIndicator: true,
notification: bg.Notification(
title: APP_NAME,
text: "Background location tracking active",
color: "#ff0000",
channelName: "Location tracking",
sticky: true,
),
backgroundPermissionRationale: bg.PermissionRationale(
message: '$APP_NAME collects location data to enable task allocation'
'and driver tracking even when the app is closed or not in use',
negativeAction: "Cancel",
positiveAction: "Open Settings",
title:
"$APP_NAME only works correctly if it can access your location all the time.",
),
persistMode: bg.Config.PERSIST_MODE_LOCATION,
enableHeadless: true,
// reset: true,
)
[Optional] Relevant log output
Metadata
Metadata
Assignees
Labels
No labels