More and more users have been reporting issues with losing GPS signal during track recording when their device goes standby, resulting in direct lines instead of accurately recorded tracks. What to do to avoid it?
The operating system must be set for Locus Map NOT to switch GPS off in standby mode (when the display goes off). Android 10 goes even a bit further:
This OS version divides permission to access GPS location into three modes:
Battery saving modes or other performance-optimizing settings in your device kill apps they consider unused or redundant, no matter the app is running in the background on the user's request. The mode can be named differently depending on the device manufacturer. There are two ways how to prevent this - either switch the saving mode completely OFF or make an exclusion for Locus if it is possible.
Here are a few device specific instructions:
Standard/Extreme Power Saving Mode - switch it OFF
See also https://dontkillmyapp.com/htc »
See also https://dontkillmyapp.com/samsung »
There are several tips. Check out which one fits for your device:
Tips also on Strava support site >>
In Locus Map, better results are with disabled Settings > GPS > Google Services assisted location.
See also https://dontkillmyapp.com/huawei »
Do not use STAMINA mode.
See also https://dontkillmyapp.com/sony »
Switch Battery saver, battery optimization off or exclude Locus from its activity.
See also https://dontkillmyapp.com/google »
See also https://dontkillmyapp.com/xiaomi »
Some devices (e.g. Motorola) enable excluding location service from battery optimization. For more information about battery optimization of other mobile phone vendors, please see https://dontkillmyapp.com/.
There are also third-party apps that can maintain your battery optimization and may kill Locus or GPS unit.
Greenify has some special settings (labeled experimental), that enhance new Android 6 power-saving strategies. These power-saving strategies are labeled “shallow hibernation” and “aggressive doze”. The “aggressive doze” mode contains also a white list of apps that are excluded from the mode and Locus is likely to be put here for the above-mentioned reasons. Unfortunately, this whitelisting does not work. After 5 minutes after your device enters doze mode Locus track recording is killed. Therefore, we recommend not to use this aggressive mode or the app as a whole.
Recently we discovered an application that can lock Locus (and other apps of your choice) in your device's RAM. It's called Memory Locker and is available at Google Play Store. We have tested only a few devices with this app and it looks promising. However, as this is a third-party app, we have no responsibility for nor influence on the app performance.
This app is able to lock the system's GPS ON so that the operating system can not kill it - we recommend in cases Locus loses GPS signal in standby mode and none of the previously mentioned methods helped. The app is available at Google Play Store >>