====== Why Locus Map loses fixed GPS location or is killed by OS in standby mode ======
----
Increasingly, users have reported issues with losing their GPS signal during track recording when their device enters standby, resulting in direct lines instead of accurately recorded tracks. **What to do to avoid it?**
===== 1. Allow Locus Map to access GPS any time =====
The operating system must be set for Locus Map **NOT to switch GPS off in standby mode** (when the display goes off) - always select the **All the time** permission for Locus Map.
==== Android 11 and newer ====
The "all the time" permission is **not included in the system app permissions**. You can select only "while using this app" or "ask every time":\\ {{ :manual:faq:loc_permission01.png?nolink |}}\\ When you **launch Locus Map** and start some feature that runs in the background (voice navigation, track recording, live tracking...), Locus Map displays a compulsory warning:\\ {{ :manual:faq:loc_permission02.png?nolink |}}. Then you are prompted to **allow all-time access to the location** in the system settings:\\ {{ :manual:faq:loc_permission03.png?nolink |}}\\ {{ :manual:faq:loc_permission04.png?nolink |}}
This setting, however, is not permanent. **After not using the app for some time (e.g., three months), the "all-time" access permission is taken away** and you have to go through this procedure again.
==== Android 10 ====
This OS version divides permission to access GPS location into three modes:
* **no access** - the app is unable to get an accurate location ever
* **only when the app is used** - Locus Map can get GPS location only when the display is on and Locus is "used", i.e., manipulated directly on the screen. When the display goes off, Locus loses the GPS location and can't record tracks, navigate, share location in real-time over Live tracking, etc.
* **all the time** - the only mode in which Locus Map is permitted to run correctly in the background so please **USE THIS MODE!** It doesn't mean Locus Map is connected to GPS all the time, though - only when it needs it so don't worry about the battery consumption.
===== 2. Exclude Locus Map from battery optimization =====
**Battery saving modes** or other **performance-optimizing settings** in your device kill apps they consider unused or redundant, no matter whether 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 to prevent this - either **switch the saving mode completely OFF** or **make an exclusion for Locus Map** if it is possible.
Here are a few device-specific instructions based on findings of **[[https://www.dontkillmyapp.com|Dontkillmyapp.com]]**:
==== Samsung ====
Please visit **https://dontkillmyapp.com/samsung >>**
==== Huawei/Honor ====
Please visit **[[https://support.strava.com/hc/en-us/articles/216942547-How-to-fix-GPS-recording-issues-on-Huawei-phones|Strava support site >>]]** or **https://dontkillmyapp.com/huawei >>**
==== Sony ====
Please visit **https://dontkillmyapp.com/sony >>**
==== Nexus ====
Please visit **https://dontkillmyapp.com/google >>**
==== Xiaomi ====
Please visit **https://dontkillmyapp.com/xiaomi >>**
==== HTC ====
Please visit **https://dontkillmyapp.com/htc >>**
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/**.
===== 3. Turn OFF Google Services assisted location =====
On some devices, this option causes the GPS for Locus Map running in the background to be killed. So, if you experience such behavior despite you performed the actions in steps 1 and 2, please do the following:
* go to Locus Map settings > Gps&Sensors
* find Google services-assisted location and **TURN IT OFF**