GPS turns off during guidance

SV Hovland shared this question 15 months ago
Answered

It looks like the setting marked with a red circle in the picture below has no effect. My Samsung S8+ turns off the GPS when the screen is turned off. I can see this because when the screen is turned on, the position is still where it was and it takes some seconds to update the position.


Well, it is some battery optimization in Android, you could say.

I don't think so. When I turn on live tracking in Locus Map, the GPS is always on as it should be so it seems that Locus Map can control this, but not without live tracking on.


4fe4fc26b1c5f686501be4aaab8a02ef

Comments (1)

photo
1

Hello,

Android 8 right? If so, please temporary enable "Locus Map as service" in settings > misc. This is an issue I have to solve within the next version(s).

Menion

photo
1

Or temporary turning on Track recording, as I did

photo
1

Yes, but this is not always wanted. Problem is that system since Android 8, force apps to have something "active with notification". And whole navigation system was not created like this so it is necessary to enable also something "active". Live tracking, Track recording, Locus Map as service etc. All this will help here to keep guidance/navigation alive.

I'm just looking on this and in the worst case, I'll at least automatically enable "Locus as service" during navigation. Thanks

photo
1

So "Locus as a service" dosn't mean it always run in the background and consumes battery when I am not using Locus?


If I double "click" the back button and terminate Locus, is it really stopping when run as service is enabled?

photo
1

If you enable "Locus as service" you will see in the top system bar new notification that "Locus is running". This feature keeps Locus and also CPU alive, so it really consumes little energy as a side effect of disabled "sleep" mode for CPU.

So simply: having this enabled when you use Locus Map cause no additional battery drain. By double-back and closing Locus, notification in system bar should disappear which means that this feature was correctly disabled. Having this enabled and also having Locus just laying on the background without any usage may not be effective, avoid this.

Anyway I really just implemented most simple solution. This feature will automatically enable and disable for active navigation/guidance so there will be no need to worry about this. It should be working temporary solution till I rewrite the whole navigation system to this expected (by Google) "service system".

photo