How to Make an App Work in the Background on Xiaomi: A Complete 2026 Guide

Global smartphone makers are struggling for energy efficiency, but sometimes this struggle turns into a headache for users. MIUI Not hearsay know how suddenly stop coming notifications from Telegram, music in Spotify when you lock the screen or loses contact with the fitness tracker. Itโ€™s all about aggressive optimization of background processes, which by default limits the operation of applications for the sake of saving battery power.

The problem is compounded by the fact that MIUI It hides key settings behind multiple menu layers, and after system updates, they can migrate or disappear. MIUI 14/15 And we tried to get any application to run in the background without restarting all the time. 12 Xiaomi 14 Ultra, so the instructions are guaranteed to work today.

Not to confuse background work with autostart when you turn on your phone, there are different mechanisms: the first is responsible for completing tasks when the application is folded, and the second is responsible for automatically starting after you restart the device. In this article, we will focus on the background, but we will also touch on the adjacent settings on which stability depends.

Why Xiaomi is blocking the background of applications?

The reason lies in architecture. MIUI, It's designed to be a system that's designed to be maximizing battery life:

  • ๐Ÿ”‹ Adaptive battery โ€“ analyzes user habits and limits background processes for rarely used applications.
  • โšก Deep Optimization โ€“ Forced to โ€œfreezeโ€ applications through 3โ€“5 minutes after the curtailment (actively on budget models) Redmi/Poco).
  • ๐Ÿ›ก๏ธ Privacy Protection โ€“ blocks access to geolocation, microphone and other sensors in the background (on by default for new applications).
  • ๐Ÿ“ต Mobile Traffic Restriction โ€“ Interrupts Background Synchronization if Data Savings are enabled.

In practice, this means that even popular messengers like WhatsApp or Viber can lose connection to the server 10-15 minutes after leaving the background, and health monitoring applications (such as Google Fit or Mi Fitness) stop recording steps if the screen is locked for more than 5 minutes.

It is interesting that on the flagship models (Xiaomi). 13T Pro, Mix Fold 3) some of the restrictions are relaxed, but even there they are present. MIUI Lite (e.g. Redmi) A2) background work is generally disabled for all applications except system.

โš ๏ธ Warning: After resetting to factory, all permissions for background work are reset. When you transfer data via Mi Mover or Google Backup, the battery optimization settings are not saved - they will have to be reconfigured.

Method 1: Disabling adaptive battery optimization

This is a basic setup that is worth checking first, and it is responsible for automatically limiting background processes based on usage analysis.

Instructions for MIUI 14/15:

  1. Open the Settings. โ†’ Battery.
  2. Put it on the badge. โš™๏ธ (gear) in the upper right corner.
  3. Choose Battery Optimization (on some firmware โ€“ Smart Optimization).
  4. In the list of applications, find the desired one and select Without restrictions.

If your app isn't on the list, it's not optimized yet, so you can force it to add it.

  1. In the same menu, Battery Optimization tap on three points (โ‹ฎ) โ†’ Add annexes.
  2. Select the necessary applications and confirm the choice.

Is Battery Savings mode off in the notification curtain?

Is "Flight Mode" on in the settings? SIM-map

Is background traffic allowed for the application (see Method 3)

Is the clock on the phone synchronized (wrong time knocks down background tasks)-->

On devices with MIUI 12 and older path may differ: Settings โ†’ Battery and productivity โ†’ Battery management โ†’ Selection of applications. If you have an old firmware version, update it through Settings. โ†’ The phone. โ†’ Updating the system.

โš ๏ธ Caution: Disabling optimization for all applications in a row will lead to an increase in battery consumption by 15-20.

Method 2: Allowing Auto Start and Background Activity

Even if you have disabled battery optimization, the app may not be able to automatically start after the phone has restarted or to perform background activity (such as data synchronization).

How to turn on:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Select the application you want (e.g. Telegram or Yandex Go).
  3. Slip on the Permits. โ†’ Autostart and switch on the switch.
  4. Go back and select Background Activity (or Additional) โ†’ Background work on some firmware).
  5. Activate the option to Allow background activity.

Nana MIUI 15 for Xiaomi 14 and the newer way is a little different:

Settings โ†’ Applications โ†’ Permissions โ†’ Autostart (tab)


Settings โ†’ Applications โ†’ [Select App] โ†’ Battery โ†’ Background Activity

Xiaomi modelThe path to auto-startThe path to background activity
Redmi Note 12/13, Poco X5Settings โ†’ Applications โ†’ Management โ†’ Auto-RunSettings โ†’ Annexes โ†’ [Annex] โ†’ Battery โ†’ Background activity
Xiaomi 13/14, Mix Fold 2/3Settings โ†’ Applications โ†’ Permissions โ†’ AutorunSettings โ†’ Annexes โ†’ [Annex] โ†’ Additionally. โ†’ Background work
Redmi A2, Poco C55 (MIUI Lite)No possibility to disable (limit firmware)There's no way to turn it off.

After activating these options, the application will be able to:

  • ๐Ÿ“ฑ Start automatically after restarting the phone.
  • ๐Ÿ”„ Synchronize data in the background (e.g., email or cloud services).
  • ๐Ÿ”” Get push notifications even when the screen is locked.

Telegram

WhatsApp

Spotify/Yandex Music

Google Fit/Mi Fitness

Other-->

If you turn on these options, the app still doesn't work in the background, check if it's added to the blacklist for energy saving.

  1. Open Settings โ†’ Battery โ†’ Battery Optimization
  2. Scroll down the list and click the Applications in the blacklist.
  3. Make sure your app isn't there. If you have one, remove it from the list.

Method 3: Setup background data traffic

Many users forget that MIUI The default limits background traffic for mobile data and Wi-Fi, meaning the app wonโ€™t be able to sync or update content if the screen is off.

How to allow background traffic:

  1. Go to Settings โ†’ Connections and Sharing โ†’ Data Use.
  2. Select the Use of Data by Applications.
  3. Find the right application in the list and tap on it.
  4. Turn on switches: Background data (for mobile Internet), Wi-Fi background data (if connected to the network).

For applications that actively use geolocation (for example, Yandex.Maps or Uber), you also need to:

  1. Go to Settings โ†’ Confidentiality โ†’ Permits โ†’ Geolocation.
  2. Select the application and set the permission Always (not only during use!).

๐Ÿ’ก

If after turning on background traffic, the application still does not sync, try temporarily disabling. VPN Some services (e.g. banking applications) block background activity when active VPN.

On two-device devices. SIM-cards (Dual) SIM) Background traffic can only work through the main traffic SIM. To change priority:

  1. Open the Settings. โ†’ SIM-maps and mobile networks.
  2. Select the mobile internet settings.
  3. Set Priority. SIM for data on the one used for background synchronization.

Method 4: Using "No Limits" in Battery Settings

If previous methods have not worked, it is time to use the "No Limits" mode, which completely disables all optimizations for the selected application, but can significantly increase battery consumption.

How to turn on:

  1. Go to Settings. โ†’ Battery.
  2. Tap on. โš™๏ธ (gear) โ†’ Optimizing the battery.
  3. Find the app in the list and select No Limits.
  4. Confirm the action in the dialog window.

For other applications (social networks, games, utilities), it is better to use Intelligent Optimization - this is enough for stable operation without unnecessary battery consumption.

What if the "No Limits" mode is not in the settings?
Some of the firmware (for example, for Poco) F5 or Redmi K60) This mode can be hidden. To unlock it: 1. Enable Developer Mode (Settings) โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times tap. 2. Return to Settings โ†’ Additionally. โ†’ For developers. 3. Find the option to Disable Optimization MIUI 4. Reboot the phone, and then the "No Limits" mode will appear in the battery settings.

Method 5: Fixing the application in multitasking (for MIUI 14/15)

If the application is constantly "flying" out of memory, it can be fixed in the multitasking panel, which will prevent the system from automatically cleaning the RAM.

How to record:

  1. Open the application that you want to leave in the background.
  2. Turn it down (home button or gesture).
  3. Open the multitasking panel (swipe up with a delay).
  4. Find the app card and make a long tap on it.
  5. In the menu that appears, select Secure (pin icon) ๐Ÿ“Œ).

After fixing:

  • ๐Ÿ”’ The application will not be closed when cleaning the RAM (even if you click "Close all").
  • ๐Ÿ”„ It will continue to work in the background until you manually unlock it.
  • โš ๏ธ Fixed apps take up RAM all the time, which can slow down the phone with a large number of pins".

Limitations of the method:

  • ๐Ÿ“ต Does not work for system applications (such as Settings or Phone).
  • ๐Ÿ”„ After restarting the phone, the fixation is reset.
  • ๐Ÿšซ On some firmware (e.g, MIUI 12.5 for Redmi 9) this function is not.

๐Ÿ’ก

Fixing in multitasking is a temporary solution. For constant background work, be sure to combine this method with battery settings (Methods 1-4).

Additional methods for experienced users

If standard settings donโ€™t work, you can use hidden features or third-party tools, which require caution and are only suitable for advanced users.

1. Teams ADB limit-free

Using Android Debug Bridge (ADB) You can manually disable optimization for a particular application:

  1. Install ADB Tools on your computer.
  2. Turn on the debugging. USB on the phone (Settings) โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times to tap โ†’ Developer mode โ†’ Debugging by USB).
  3. Connect your phone to your PC and execute the command:
adb shell dumpsys deviceidle whitelist +com.example.app

Replace com.example.app with a real application package (e.g. org.telegram.messenger for Telegram).

2 Automation via Tasker or MacroDroid

Applications like Tasker or MacroDroid can mimic user activity so that the system doesn't shut down background processes. MacroDroid macro example:

  • ๐Ÿ“ฑ Trigger: "Application is running" (select the desired one).
  • โš™๏ธ Action: Send a Notice (Text: "Keep alive").
  • ๐Ÿ”„ Restriction: Repeat every 10 minutes.

This will cause the system to consider the application โ€œactiveโ€ even if it is folded.

3. Firmware with optimisation disabled

Forums XDA Developers have modified firmware MIUI with the background optimization disabled (for example, MIUI EU Their installation requires unlocking the bootloader and may deprive the warranty.

โš ๏ธ Attention: Use ADB Or custom firmware can lead to data loss, blocking of Mi Account or disruption of services (for example, Google Pay will stop working on uncertified firmware). โ†’ Additionally. โ†’ Backup and reset.

Frequent problems and their solutions

Even after all the settings, some applications can be unstable, so let's look at the typical scenarios and how to fix them.

Problem.Possible causeDecision
Notifications are delayed (10-30 minutes)Restricted background traffic or Doze Mode (Android sleep mode)Turn on Without Restrictions in Battery Settings and Turn off Doze Optimization in Developer Mode
Music stops when the screen is blockedThe application is prohibited from background playback or battery saving worksAllow Background Activity and Add the App to Optimization Exceptions
The application does not sync data (mail, cloud)Background traffic is disabled for Wi-Fi/mobileCheck the settings in Data Use โ†’ Background data
GPS-Tracker loses signal in 5-10 minutesRestriction on the use of sensors in the backgroundEnable High Accuracy in Geolocation Settings and Allow Always for Application
The application closes after restartingAutostart is disabled or it is in the battery blacklistCheck Auto Start and Battery Optimization โ†’ Blacklist.

If the problem persists, try:

  1. Clear the app cache (Settings โ†’ Apps โ†’ [Application] โ†’ Clear the cache).
  2. Remove and reinstall the application (sometimes the settings are confused after updates).
  3. Check if the notifications are blocked by an antivirus (e.g. Avast or 360 Security).

On devices with MIUI 15 and HyperOS (new firmware for Xiaomi 14) are some of the problems that are solved automatically thanks to an improved memory management algorithm.

โ“ Why After Updating MIUI The app stopped working in the background again?
Large updates (e.g. with the MIUI 13 on MIUI 14) the system resets the battery optimization settings. After the update, you need to re-check Battery Optimization for critical applications. Enable AutoRun and Background Activity. Update the applications themselves to the latest versions (sometimes you need to adapt to the new version). MIUI). If the problem remains, wait for the patch from Xiaomi (usually released within 1-2 weeks after the major update).
โ“ Can I turn off optimization for all applications at once?
Technically, yes, but it's highly discouraged: ๐Ÿ”‹ Increased battery consumption 30โ€“50%. ๐Ÿข Slowing down the phone due to background overload. ๐Ÿ”ฅ Overheating of the device (especially on models with Snapdragon) 7xx/8xx). If you want to try it, turn on Developer Mode. Go to Settings. โ†’ Additionally. โ†’ For developers, find the option to turn off optimization. MIUI Reboot the phone, and some firmware may not have this option or may not work properly.
โ“ How to check if the application works in the background?
There are several ways: Notification Logs: Use the Notification History Log app (requires root or ADB), Process monitoring: Install Process Monitor from Google Play and check if the application process is killed after a few minutes. GPS: For navigators, turn on track recording and lock the screen - if the track is interrupted after 10 minutes, then the background work is not stable. ADB-Command: Connect your phone to your PC and execute: adb shell dumpsys battery unplug Then check the logs for forced closure of the application.
โ“ Why Xiaomi 13 Ultra apps work in the background without settings, and Redmi Note 12 โ€“ no?
This is due to different optimization policies for flagship and budget devices: Flagship models (Xiaomi) 13/14, Mix Folds use less aggressive battery-saving algorithms, because they have more capacious batteries and powerful processors. Budget models (Redmi Note, Poco M) severely limit background processes to compensate for weak iron and a small battery. MIUI Lite (on Redmi) A2, Poco C50) It doesn't allow you to turn off optimization at all, it's a firmware restriction. LPDDR5X memory, which more effectively manages background tasks, while on budget models it is LPDDR4X more restrictively.
โ“ What to do if none of the methods help?
If youโ€™ve tried all the methods, but the app still doesnโ€™t work in the background: Check compatibility: Some apps (like Snapchat or Snapchat) Pokรฉmon GO) conflict MIUI Install an alternative launcher: Launchers like Nova Launcher or Hyperion sometimes bypass the restrictions. MIUI. Use the web version: For instant messengers (such as Telegram Web) or music services (Spotify Web Player), you can use the browser in Add to the home screen. Contact Xiaomi support: Report the problem through Settings โ†’ Folder โ€œConnections and feedbacks" โ†’ Review: Sometimes bugs are fixed in the following updates. If the problem is related to a particular application (for example, BankID or corporate messenger), contact its developers - an update may be required for compatibility with the application. MIUI.