Traditionally, Xiaomi and their Android customization called MIUI belongs to the most troubled group on the market with respect to non-standard background process limitations and non-standard permissions. In default settings, background processing simply does not work right and apps using them will break.

Autostart

The main restrictive setting is called Autostart. It may vary on different Xiaomi smartphones.

To turn it on:

  1. Go to your SettingsManage apps..

  2. Scroll down to your app and tap on it.

  3. Enable Autostart.

  4. Tap on Autostart and ensure both options are toggled on.

Another way to enable Autostart:

  1. Open Security app → Permissions

  2. Tap on Autostart

  3. Search your app and turn on toggle next to it

App permissions and a Battery Saver setting

  1. From your app's battery screen, tap on App permissions.

  2. Turn on Show on Lock screen, Start in background, and Display pop-up window.

  3. Go back to your app's battery screen and verify that Other permissions say Allowed for 3 permissions. Scroll down and tap on Battery saver.

  4. Choose the No restrictions option.

  5. Go back to your app's battery screen and verify that all 3 sections has successfully changed. Battery saver should now show No restrictions.

App pinning

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.

Did this answer your question?