Could it be some issue related to energy saving in your device?
You can try looking into Applications and/or Battery settings: if one of
the apps using the GPS receiver is set to be put to sleep automatically,
just change the settings to "never sleep" (menu and options names may be
different depending on the Android version you have)

BTW: AGPS only works when a network connection is available, since it
downloads from there all the data almanacs that would be received from the
satellites (download only  takes a couple seconds, receiving on-the-air
from satellites would require several minutes).
You can update data via AGPS when you are in the village: they will then be
valid for several days (7 if I remember well), even if no network is
present.

Regards,
Max

Il Dom 18 Ago 2019, 21:32 Manu EL <[email protected]> ha scritto:

> I've done some testing. I use GPS only, no A-GPS. Mobile connection is off
> (airplane mode).
>
> Testing
> In the village (900m above sea level) : everything is fine with the GPS.
> In the mountains (> 1000m) : I start the smartphone. I open 'GPS Test' app
> => I get a GPS fix. Then I put the app in the background or lock the
> screen, then I reselect the app => impossible to get a fix
> Same behaviour with Osmand. Same when I close the app and then relaunch it.
>
> Workaround 1
> In GPS Test, I go in the A-GPS menu, do 'clear cache' or 'clear & update'.
> Still no fix in GPS Test. But if I send GPS Test in the background then
> select Osmand, I get a fix after 1 minute in Osmand (would be the same with
> GPS Test : if I send GPS Test in the background then reselect GPS Test, I
> get a fix after 1 minute in GPS Test). This workaround can be used in
> emergency but is not convenient. My hypothesis is that the GPS cache is
> somehow corrupted when the app is sent to background or closed. Any app
> launched at this point will fail to get a fix, until the GPS cache is
> cleared.
>
> Workaround 2
> In Osmand, I start a trace recording with recording interval set to 3
> minutes (to preserve battery). From this point, I can send Osmand in the
> background or lock the screen without losing the GPS fix. It may consume a
> bit of battery, but at least, I can use the GPS in mountains. That's great.
>
> This is a strange bug, considering it happens only in altitude, or
> depending on some other parameters I'm not aware of.
>
> If anybody thinks about a real fix for this issue, please tell me!!
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Osmand" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/osmand/kAmLjznVFLE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/osmand/7824c6fd-b132-4719-9cd0-df705aad9632%40googlegroups.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osmand/CA%2BJirgAfNFy8Lkw6Es%2BOx%2B%2Bm6k6FNozKgJiZCMwteqYkYWpg%3DA%40mail.gmail.com.

Reply via email to