Amiko – Tracking issue with Xiaomi devices

Issue

Your walks may stop unexpectedly because Xiaomi devices block apps running in the background in order to extend battery life.

Solution

To solve this problem, you need to tell your device that Amiko is authorized to run in the background. The procedure may be different depending on the Android version of your device.

MIUI 12

To let your app run in the background, make sure settings for your app look like the following

MIUI 11

To let your app run in the background, make sure settings for your app look like the following:

MIUI 10

To let your app run in the background, make sure your settings look like the following (here for example is Sleep as Android):

Power management

Please enable:

  • Settings > Advanced Settings > Battery manager > Power plan is set to Performance
  • Device Settings > Advanced Settings > Battery Manager > Protected apps – your app needs to be Protected
  • Device Settings > Apps > your app > Battery > Power-intensive prompt and Keep running after screen off
  • Settings > Additional Settings > Battery & Performance > Manage apps’ battery usage and here:
    1. Switch Power Saving Modes to Off
    2. Choose the next options: Saving Power in The Background > Choose apps > select your app > Background Settings > No restrictions

App battery saver

Security > Battery > App Battery Saver > Amiko > No restriction

App pinning / App locking

When you open the recent apps tray, drag your app downwards (it will be locked). So, even if you clear recent apps, it will not clear them from the background. Drag downwards again to clear your app from the background.
On some phones, you need to long-press Amiko and then choose the padlock icon from the menu: