Table of Contents

Online Help > Positioning > Track recorder > Setup

How to correctly setup your device for background track recording


Recent Android versions optimise the usage of resources and sensors (including the GPS chip) to preserve the battery level as much as possible.

In order to continuously record a track while the application is not displayed on the foreground or when the screen is turned off, you may need to correctly configure your device and disable some battery optimisations.

In addition to the simple yet powerful optimisations available on a “pure” Android (also called “stock” or “AOSP” Android), some brands add their own optimisation tools, often difficult to setup or broken, usually to compensate the poor quality of their battery and other components.


Pure (stock) Android


On a pure Android version, there are only a few settings you need to pay attention to:


Disable the battery saver


The battery saver will disable the GPS and other sensor after the screen is turned off for some time. To disable it, open the Android system settings and:

tracker-setup-saver-1.jpg

Disable the battery optimisations for the application


Those optimisations prevent a particular application to use the GPS when it's not displayed in the foreground or when the screen is turned off. To turn them off, open the Android system settings and:

tracker-setup-stock-1.jpg

In same cases (system bug), you may need to disable then enable back the Allow background usage and Unrestricted options to correctly set the new settings to the application.
If you don't want that the system resets the permissions of the application after not being used for some time, disable Manage app if unused in the application settings. tracker-setup-stock-2.jpg

Grant the application the permission to use the GPS


The application does request this permission when you first activate the real-time positioning on the map using the GPS. In case you didn't grant the application at that time, you can do it by opening the Android system settings, and go in the settings section of the application (see above). Then:

The application only needs to use the GPS after you manually start it and turn on the track recorder. Even if you close the main map view or turn off the screen, the track recorded is still running and the system still consider you as “using the app”.
The location permission “Allow all the time” is only needed by applications that start by themselves and want to know your exact GPS location, without you making a single action (like an e-mail or instant messaging application that regularly starts and checks new messages without any action from you). You should avoid installing applications that request this type of location permission. tracker-setup-permission-1.jpg


Modified Android (One UI, MIIU, ...)


Exact steps may vary depending on your device brand and system version.


Samsung devices

tracker-setup-doze-samsung-1.jpg

tracker-setup-doze-samsung-2.jpg

tracker-setup-doze-samsung-3.jpg


Huawei devices

tracker-setup-doze-huawei-1.jpg

tracker-setup-doze-huawei-2.jpg

tracker-setup-huawei.jpg


Xiaomi/Vivo devices

tracker-setup-xiaomi.jpg


HTC devices

See here


More information can be found on dontkillmyapp.com.