Navigation - GPS signal lost when screen is locked

762 views
Skip to first unread message

Ben Ji

unread,
May 23, 2020, 3:35:04 AM5/23/20
to OsmAnd
Hello,

When I start a navigation to follow a gpx track the gps signal is available but, as soon as the screen is locked the gps signal is lost.
If I unlock the screen, the gps signal is retrieved. If I lock the screen, the gps signal is lost, etc.

If it helps, I provide you additional information:
- I don't record the navigation
- No optimization of the battery
- No adaptative battery
- Localisation Always activated for this application

FYI, here is my configuration: OsmAnd 3.6.3, annual subscription, phone Nokia 7+, android 10

Thanks
Ben

Chat Noir

unread,
May 27, 2020, 8:49:38 AM5/27/20
to OsmAnd
Hi,

Same problem here with Osmand 3.7.2 on my Mi 9T Pro, running Android 10.

When recording a track it is unneccessary to let the screen on when my phone is in my pocket.
In both cases, when the screen locks automatically or when I turn it off manually, Osmand stops recording or even stalls!

Just like Ben, I turned battery optimization and screen time-out off, checked the Osmand website and some forums, however without result.

It seems to be a well known issue that pops up every now and then, that has not been solved so far.

Who can help?

Thnx!

MartinR

unread,
May 27, 2020, 12:10:37 PM5/27/20
to OsmAnd
Hi,

even the same problem here with OsmAnd 3.7.2 on a Pocophone F1 running Android 10 (MIUI11.0.8).

Battery optimization is of course turned off for OsmAnd and localisation is swicthed to always activated.
When I unlock the screen a message is shown for a glimpse that the Location Services have to be activated for navigation.
Of course the Location Service had been activated.

By the way, the same problem occurs with Google Maps and LocusMap.

My current workaround for this is to plug a powerbank to the phone.
Then the gps signal on my phone is not lost when the screen is locked.
So I suspect that the reason for the problem is some aggressive power saving in Android doze (deep sleep) mode, because the plugged powerbank prevents the phone from going into doze mode. 
But of course this workaround is not very convenient, especially during a hike.

So I am still hoping for a solution.

Thanks
Martin

Jean Michel Daenen

unread,
May 31, 2020, 10:44:57 AM5/31/20
to OsmAnd
Désolé, je ne parle pas Anglais.
J'avais le même problème après changement de mon téléphone Archos pour un Xiaomi Mi 9 Lite, ( MIUI 11.3.4 Android 9 ).
Jamais eu ce problème avant avec mon Archos.
J'ai activé Mi Cloud et dans celui ci j'ai activé Localiser l'appareil.
Depuis, j'ai retrouvé un fonctionnement normal d'Osmand et il continue de fonctionner téléphone en veille.

Chat Noir

unread,
May 31, 2020, 3:20:14 PM5/31/20
to OsmAnd
J'ai dé-installé OsmAnd complêtement (dossiers et cartes inclus) et ensuite ré-installé tout. Depuis alors tout marche comme avant.
Je ne suis pas sure si le service de localisation de Xiaomi est responsible.

Courage!

Ben Ji

unread,
Jun 1, 2020, 4:28:43 AM6/1/20
to OsmAnd
Anybody?.. snif snif 🥺

Max1234Ita

unread,
Jun 1, 2020, 10:54:10 AM6/1/20
to OsmAnd
Unfortunately I have Samsung and Huawei phones, don't know if settings are the same in Nokia, even though the should be very similar.

App suspension could be active even if BAttery optimization is turned off.
Try looking in your Battery menu, and check if some app related to positioning is being put to sleep when sreen is turned off.

In Samsung I see the setting in Battery -> Application Power Saving -> Suspended applications; there is also an option to de-activate suspension of unused apps.

In Huawei, I have Battery -> Start-up, where I can set what apps are being launched/suspended automatically. If an app is set to Manage automatically, I can switch it to "manual mode" and select whether it can be started by other apps or run in background.

I guess in your phone there is some positioning-related service which is automatically disabled after you lock the screen, so you are not able to get the position anymore.

Regards,
Max

Il giorno lunedì 1 giugno 2020 10:28:43 UTC+2, Ben Ji ha scritto:
Anybody?.. snif snif 🥺

Ben Ji

unread,
Jun 1, 2020, 1:12:43 PM6/1/20
to OsmAnd
There is a similar menu, the optimization of the battery is not activated. I already checked all the menus and nothing should prevent the application.
I will keep looking into the different menus, and maybe try to remove the application and then re-install it.
Thanks for your help.

Nick A

unread,
Jun 11, 2020, 12:42:14 PM6/11/20
to OsmAnd
This may relate to Android 10 setting for Location services. For your phone, click on the cog for 'settings', and then search for 'Location' - this will bring up a list of all apps. I've moved all of the apps that I use for navigation etc from 'Allowed only while in use' to 'Allowed all the time'. Click on the app and then chose which category for it.

Good luck, and I'd be interested to know if this solves your problem.

Regards

Nick
OSM = Tallguy

Majka

unread,
Jun 12, 2020, 4:11:33 AM6/12/20
to OsmAnd
Additionally, you may need to switch on "keep app in background". I had to switch it on explicitly, even if the battery optimisation is off on my phone. In settings, find the app and check: Battery > Keep app in background 
You can the check that all the apps you need are switched on:

You have to set this for Osmand itself. If you are using non-system TTS engine for navigation, this one needs it as well. Should you be using BRouter as alternative navigation from inside of Osmand, that is another app that will probably need it.

And check in permission that you have given all the permissions the app might need. Some older apps are not asking for them.

Majka
Reply all
Reply to author
Forward
0 new messages