When you enable highest accuracy, the GPS will always be ON when not in stationary state. This part is absolutely expected.
Sounds like stop detection is not working in your case for some reason. Are you sure it's a device with official Google Play and all necessary permissions are granted for the Traccar Client app and for the Google Play app?
Yeah, I expect the gps to stay on while moving, however stop detection isn't kicking in for some reason. It is the official google play/play services and all permissions including physical activity is granted and the logs show activity still with confidence score 100.
And by the way it isn't happening on all devices I have for testing like it works on some devices but I am confused, if traccar detected the activity to be still and more than an hour passed with no change in activity as per the logs then why does it keep the gps on !
Are you absolutely sure that the permissions are enabled for the Google Services app? Not just the Traccar Client app.
I am 100% sure
Then I don't have any other ideas.
Appreciate your honesty.
If I correctly recall, when turning off stop detection a button should appear to manually force the stationary/moving state. Has that changed recently? Because I tried to manually force a stationary state on that device by turning off stop detection and that button didn't appear
Yeah, if you turn off stop detection, it should stay always on now.
Will try to downgrade to an older traccar client version to see if this is a traccar issue or maybe a play services issue.
I have downgraded to 9.6.0 which I was absolutely sure that it was working just fine of that device since I thoroughly tested that version when you released the deeplinking. And surprisingly the gps remained stuck on, even on that version which could only mean that it isn't a traccar issue since this version used to work just fine before, but rather something else. I have no idea what could it be. In addition another test device I have starting having the same issue as well. This time it is a lineage os one. I am thinking maybe it is a play services issue or something. I am not quite sure honestly
I have cleared cache and data for play services on the affected devices which seemed to fix the issue. Now it is back working as it should. Was a play services issue
I have noticed recently on a couple of devices I use for testing that on highest accuracy and with stop detection turned on while the device is stationary the gps remains on indefinitely.
Logs shows still with confidence100 for over an hour.
Stop detection is on in traccar (the toggle at least)
Highest accuracy
Once I turn the continuous tracking off the gps will no longer be in use on these devices further confirming it is traccar that is keeping it on
I am not sure if there is something else I can check in the logs to figure out the reason why traccar sometimes keeps the gps on despite it shouldn't on some devices only as I got other devices all running Android with traccar client v9.6.1