How to set up applications in the background on Xiaomi: the full guide 2026

Why Xiaomi Apps Close in the Background and How to Fix It

Owners of Xiaomi, Redmi and POCO smartphones often face a problem: messengers stop notifying, music players stop after 5 minutes, and navigators lose connection when the screen is locked. The blame is the aggressive optimization of the battery in the MIUI shell, which forcibly closes the background processes. In this article, we will discuss how to properly configure the application in the background so that they do not unload from memory and work stably.

The problem is relevant for all firmware versions, from MIUI 12 to MIUI 14, including Android 13/14 models, and even flagship devices like Xiaomi 14 Ultra or POCO F6 Pro are not insured: the system saves charge due to user comfort, but the good news is that you can fix this without root rights using hidden settings and standard MIUI tools.

It is important to understand that setting up background processes on Xiaomi requires a comprehensive approach: just add an application to auto-start or disable battery optimization. You need to configure 4 key parameters at once: auto-start, lock in the background, battery optimization and permissions for a particular application. Skip at least one step and the problem will return.

๐Ÿ“Š What kind of Xiaomi model do you have?
Xiaomi 13/14 series
Redmi Note 12/13
POCO F5/X5
Another Xiaomi model
Not Xiaomi.

Step 1: Disabling Battery Optimization for the Application

The first thing you need to do is to remove the application from the optimized list, and by default, MIUI limits the background activity of all programs except system programs, to remove this limitation:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the desired application (for example, Telegram or Yandex Navigator).
  3. Slip on the item Battery Optimization.
  4. In the drop-down menu, select No Limits.

For some applications (e.g. messengers), it is also useful to enable the option to Allow background activity in the same menu, which allows the program to communicate with the server even when the screen is locked.

โš ๏ธ Attention: After update MIUI Battery optimization settings can be reset. Check them after each major system update.

  • ๐Ÿ”‹ For instant messengers (WhatsApp, Viber, Telegram): always choose without restrictions.
  • ๐ŸŽต For music players (Spotify, Yandex Music): enough mode Intelligent optimization.
  • ๐Ÿš— For navigators (Google Maps, Yandex Navigator): only Without restrictions + Permission to Exact Location.

Optimization of the battery โ†’ Without restrictions |

Allow background activity โ†’ On|

Auto Start โ†’ On (see next step)|

Notifications โ†’ Permitted and prioritized-->

Step 2: Setup Autostart and Lock in the Background

Even if you've turned off battery optimization, MIUI can shut down the app minutes after it's curtailed, and to avoid that, you need to:

  1. Go to Settings โ†’ Applications โ†’ Application Management โ†’ [Select App].
  2. Activate AutoRun switch (allows the application to start automatically after restarting).
  3. Enable Background Lock (prohibits the system from killing the process).

On some models (e.g. Redmi Note 12 Pro+), the Background Lock option may be called Lock in Memory or Prohibit Closure. If no such option is available, use an alternative method via Developer Mode (see Step 4).

Type of applicationAuto-startBlocking in the backgroundOptimizing the battery
Messengersโœ… Onโœ… OnNo restrictions.
Navigators.โœ… Onโœ… OnNo restrictions.
Music playersโŒ Offโœ… OnIntellectual
Fitness trackersโœ… OnโŒ OffOptimize

For applications that need to run continuously (such as Shagomer or Conversation Recording), it is also helpful to enable the option to Show over other windows in the permission settings, which will prevent them from closing when the screen is locked.

๐Ÿ’ก

If notifications still donโ€™t come after you set up autorun, check your sync settings in your Mi Account. Sometimes the problem is that contacts or messages are disabled.

Step 3: Permits for stable operation in the background

Many applications require additional permissions to work properly in the background.

  • ๐Ÿ“ Location: Navigators (Google Maps, 2GIS) need permission Exact location even in the background.
  • ๐Ÿ”” Notifications: Messengers (Telegram, WhatsApp) should be allowed to show high-priority notifications.
  • ๐Ÿ”„ Auto Start: Apps like Autoresponder or Alarm clock need to be added to autorun exceptions.

To check the permits:

  1. Go to Settings โ†’ Applications โ†’ Application Management โ†’ [Select App] โ†’ Permissions.
  2. Turn on all necessary switches (especially Location, Notifications, Auto Start).
  3. Some applications (e.g. Yandex Maps) also require permission to Ignore battery optimization in additional settings.

If the application requests permission for Persistent Activity in the background (such as Zoom or Discord), be sure to provide it. Without this, the program will close 10-15 minutes after curtailing.

โš ๏ธ Attention: On devices with MIUI 14 and Android 14 have a new restriction, Restricted Background Access, which must be disabled separately in the privacy settings for each application.

How to Check Hidden Background Processes
Open Settings โ†’ About Phone and tap the MIUI version 5 times to activate Developer Mode. Then go to Settings โ†’ Additional โ†’ For Developers โ†’ Process Limit and set the Standard Limit or No Limit value. This will prevent background tasks from automatically closing.

Step 4: Using Developer Mode to Fine-Tune in

If standard methods don't work, you'll have to use hidden settings for developers, which is suitable for power users and allows you to flexibly manage background processes.

First, activate the Developer Mode:

  1. Go to Settings โ†’ About Phone โ†’ MIUI version.
  2. Tap on the item 7 times in a row until the notification You became a developer!

Now open Settings โ†’ Additional โ†’ For developers and configure the following settings:

  • ๐Ÿ”„ Process Limit: Set a Standard Limit or No Limit.
  • ๐Ÿ“ฑ Do not turn off the screen: useful for navigators.
  • ๐Ÿ”‹ Background Processes: Increase the limit to 4 processes (usually 2 by default).
  • ๐Ÿšซ Limit background processes: Turn off this switch.

For maximum stability, it is also recommended to disable Windows Animation and Transition Animation โ€“ this will reduce the load on the system and reduce the likelihood of forced closure of applications.

๐Ÿ’ก

Customizing process limits in developer mode is the most effective way to prevent background tasks from closing, but can slightly increase battery consumption.

Step 5: Alternative methods (without root)

If none of the above methods worked, try these solutions:

  • ๐Ÿ”„ Reinstall the app: Sometimes resetting helps. Uninstall the program, restart the phone and reinstall it.
  • ๐Ÿ“ฑ Lite usage: For example, Facebook Lite or Messenger Lite are often more stable than the mainstream versions.
  • ๐Ÿ”‹ Disabling "Adaptive Battery": In Battery Settings (Settings) โ†’ Battery โ†’ Adaptive battery: Disable this option โ€“ it aggressively closes the background processes.
  • ๐Ÿ› ๏ธ Resetting application settings: In Settings โ†’ Annexes โ†’ Application management โ†’ โ‹ฎ โ†’ Resetting application settings.

Some apps (like Google Play Services) also help clear cache and data, but beware: this can lead to loss of settings or logging out.

If the problem persists, check if the application is blocked by Antivirus or MIUI Firewall. Go to Settings โ†’ Security โ†’ Scanning and add the application to exceptions.

Frequent Mistakes and How to Avoid Them

Many users make the same mistakes when setting up background processes, and here are the most common:

  • โŒ Auto-Run Only Setting Up: Without disabling battery optimization and locking in the background, it won't work.
  • โŒ Ignoring permissions: For example, denying location access to a navigator.
  • โŒ Using Memory Cleanup: Cleaning Up Notifications Shutter Kills All Background Processes.
  • โŒ Update MIUI without checking settings: Many permissions are reset after the update.

Another common mistake is using killer tasks (such as Greenify or AccuBattery), which conflict with MIUI settings and can exacerbate the problem, and if you installed them, delete and restart the phone.

Also avoid the power saving mode (Settings โ†’ Battery โ†’ Power saving mode) which blocks background activity of all applications except system ones. Use Balanced Mode instead.

Why does the app still close after setting up?
You probably missed one of the steps. Check: Battery optimization is off (No limits); Autostart and Background lock are on; All the necessary permissions (location, notifications, etc.) are given; Power saving is on; If everything is set up correctly, but the problem remains, try reinstalling the app or updating MIUI to the latest version.
How to check if the application works in the background?
There are several ways: Open Settings โ†’ Applications โ†’ Application Management โ†’ [Select App] โ†’ Memory Use. If Background Processes are Yes, the application is active. Use Task Manager: swipe up and hold โ€” if the application is on the list, it is not closed. For instant messengers: ask a friend to send you a message. If the notification comes right away, everything works.
Will the battery be used up after these adjustments?
Yes, but not critical. Turning off battery optimization and increasing process limit can add 5-10% to daily charge consumption. However, this is offset by stable application performance. If the battery goes down too fast: Turn off autostart for unnecessary applications. Reduce the developer mode background limit to 3 processes. Use Adaptive battery for applications that are not needed in the background.
Does this setup work on POCO and Redmi?
Yes, all instructions are valid for all devices on MIUI, including: POCO F5/X5/F6 (including Pro versions), Redmi Note 12/13 (all modifications: Pro, Pro+, Turbo), Redmi K60/K70, Xiaomi 12/13/14 series. The only difference is that some POCO models may not have Block in the background.
Can I set up the background work without a developer mode?
Yes, but the efficiency will be lower. Standard settings (Battery Optimization + Auto Run) help 70% of the time. However, for some applications (like Pokรฉmon GO or Zoom) you can't do without fine-tuning through Developer Mode. If you don't want to activate Developer Mode, try: Use Lite versions of applications. Disable Adaptive Battery. Add the app to Memory Cleanup Exceptions (in the notification curtain).