-
Notifications
You must be signed in to change notification settings - Fork 272
Description
Required Reading
- Confirmed
Plugin Version
4.18.2
Mobile operating-system(s)
- iOS
- Android
Device Manufacturer(s) and Model(s)
Samsung s25 Ultra, xiaomi redmi note 8 pro, Nokia 3.4, mi a1 and others
Device operating-systems(s)
Android 15, Android 11, pixel experience rom, Android 7
What do you require assistance about?
Every once in a while traccar ( which uses this library https://github.com/traccar/traccar-client ) on almost all of my Android devices whether samsung , Xiaomi, pixel experience rom, etc will end up having the gps stuck constantly on even while being stationary for days. I don't know what causes the bug but what I know is that everytime it happens the only way to fix it is to uninstall play services and clear the play store's data and uninstall traccar then re update the play store and play services and reinstalling traccar. Noting that on all devices affected they are always in highest accuracy mode. It happens after weeks so I am not sure what is the trigger honestly for the bug. This obviously leads to excessive battery usage having the gps constantly on. The logs shows activity type is still with confidence of 100 but strangely enough isMoving is set to true despite having stop detection enabled and working for weeks just fine before the issue happening. Logs are too long to paste in the logs section so will upload it and share its link directly, I have only edited the logs masking the coordinates as per the user's request. Let me know if there is anything I can provide to help you pinpoint the root cause of the issue
The traccar developer mentioned it is a bug with this library here
https://www.traccar.org/forums/topic/2-bugs-in-traccar-for-android/
[Optional] Plugin Code and/or Config
╔═════════════════════════════════════════════
║ TSLocationManager3.7.0 (444)
╠═════════════════════════════════════════════
╟─ samsung SM-S928B @ 16 (flutter)
{
"activityRecognitionInterval": 10000,
"allowIdenticalLocations": false,
"authorization": {},
"autoSync": false,
"autoSyncThreshold": 0,
"backgroundPermissionRationale": {
"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"
},
"batchSync": false,
"configUrl": "",
"crashDetector": {
"enabled": false,
"accelerometerThresholdHigh": 20,
"accelerometerThresholdLow": 4.5,
"gyroscopeThresholdHigh": 20,
"gyroscopeThresholdLow": 4.5
},
"debug": false,
"deferTime": 0,
"desiredAccuracy": -1,
"desiredOdometerAccuracy": 100,
"disableAutoSyncOnCellular": false,
"disableElasticity": true,
"disableLocationAuthorizationAlert": false,
"disableMotionActivityUpdates": false,
"disableProviderChangeRecord": false,
"disableStopDetection": false,
"distanceFilter": 0,
"elasticityMultiplier": 1,
"enableHeadless": true,
"enableTimestampMeta": false,
"extras": {},
"fastestLocationUpdateInterval": 0,
"foregroundService": true,
"geofenceInitialTriggerEntry": true,
"geofenceModeHighAccuracy": false,
"geofenceProximityRadius": 1[Optional] Relevant log output
https://wormhole.app/6YAYjO#Qn9t8eoqhHXDUJYZ6mBRQg