How to get the app to work in the background on Xiaomi: all the ways for MIUI 12-14

Xiaomi’s MIUI-based smartphones are known for aggressive battery optimization, which often blocks application backgrounds β€” messaging stops coming in notifications, health trackers lose data, and music services suddenly stop. This problem affects everything from the budget Redmi Note 12 to the flagship Xiaomi 14 Ultra. Unlike β€œclean” Android, where background work is regulated by system settings, MIUI is responsible for a whole set of restrictions: auto-start, manual locking, and β€œhidden” limits for energy savings.

In this article, we’ll break down all the current ways to unlock the background for Xiaomi apps, including little-known tricks for the latest versions of MIUI 14 (and older), learn how to get around the restrictions without root rights, what settings are responsible for real-time notifications, and why even after all the manipulations, some applications can continue to β€œfall asleep.”

We warn you right away: there is no universal solution. MIUI algorithms are constantly changing, and some settings may vary depending on the model and regional firmware (global, Chinese, EEA). If your smartphone runs Android 13/14, prepare for additional restrictions from Google β€” they will also have to be bypassed.

Why Xiaomi is blocking the background of applications?

The reason is that MIUI is designed to be as autonomous as possible, and unlike iOS or Pixel UI, where background processes are more flexible, Xiaomi uses strict rules:

  • πŸ”‹ Battery optimization: The system forcibly freezes applications that are not actively used to reduce energy consumption.
  • 🚫 Auto-Run by Default: Most applications are initially barred from running automatically after restarting or clearing memory.
  • πŸ“΅ Restrictions on β€œnon-system” services: Applications that are not included in the standard set MIUI (Google Play Services, for example, has minimal privileges.
  • πŸ”„ Dynamic Adaptation: The system analyzes user behavior and can tighten restrictions on rarely used programs.

Key point: Xiaomi doesn't just shut down apps, it cuts their connection to servers. For example, Telegram may be listed as active processes but not receive push notifications because the system blocks network access in the background. This also applies to geolocation services: Google Maps or Yandex.Navigator can "lose" your location if they work in the background.

⚠️ Attention: Starting with MIUI 13 (and Android 12)+), Xiaomi has put an additional layer of restrictions, Restricted Apps, and even if you allow auto-runs, some apps will still be blocked if the system deems them "energy-intensive.

Preparation: Check the current settings

Before making changes, make sure the issue is really related to the limitations of MIUI, not the app itself.

Check if notifications for the app are included in its settings (not in MIUI!)

Make sure the app is not added to the β€œBlacklist” in Settings β†’ Apps β†’ Permissions β†’ AutoRun

Open Settings β†’ Battery β†’ Battery Mode and select Performance (temporarily)

Run the app manually and check if notifications appear within 5-10 minutes of folding-->

If you still have a problem after this, you can go into detail settings, and note that on some models (such as the POCO F5 or Redmi K60), the path to settings may be different due to customized versions of MIUI.

It's also worth checking if your app is "special."

  • πŸ’¬ WhatsApp, Viber: Often require additional permissions for push notifications.
  • πŸ“ Google Maps, 2GIS: may be blocked due to restrictions on use GPS background.
  • 🎡 Music Players (Spotify, YouTube Music): Need to be excluded from battery optimization.

WhatsApp

Telegram

Google Fit / Apple Health

Spotify / Music Services

Other (write in the comments)-->

Method 1: Allow auto-start and remove battery limitations

These are the basic settings that you need to go through for any application that runs in the background. MIUI 12-14:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Select the application you want (such as Telegram).
  3. Slip on Permissions and turn on all the switches (especially AutoRun and Display over other windows, if any).
  4. Go back and select Battery β†’ Background Limitation β†’ Specify Without Limits.
  5. Some firmware has a separate point of push notification – turn it on.

For Android 12+, add the app to the battery optimization exceptions:

  1. Go to Settings β†’ Battery β†’ Battery Mode.
  2. Select Setting β†’ Applications without restrictions.
  3. Add your app to the list.

⚠️ Attention: On Xiaomi with Android 13/14 (for example, Xiaomi 13T or Redmi Note 12 Pro+) There may be no "Background Limitation" option, in which case use an alternative method via Settings. β†’ Special permits β†’ Auto-run and manually add the application to the list of allowed.

Critical detail: after changing the autorun settings, be sure to restart the smartphone. Otherwise, the changes may not take effect until the next system optimization cycle (usually after 12-24 hours).

Method 2: Configure hidden parameters with MIUI Optimization (for advanced)

If standard methods don't work, you'll have to dig deeper. There are hidden settings in MIUI that don't show up in the GUI, but affect the background work, and you'll need to activate them by turning on Developer Mode:

  1. Go to Settings. β†’ The phone.
  2. Tap 7 times on the MIUI version until the notification β€œYou became a developer” appears.
  3. Back to Settings β†’ Additionally. β†’ For developers.
  4. Find and turn on: USB debugging (optional but useful for diagnosis) Do not turn off screen while charging (for testing) Limit background processes β†’ select No restrictions

Now, let's move on to the hidden optimization settings.

  1. Install Activity Launcher from Google Play.
  2. Open it and find it in the MIUI Optimization (or Security β†’ Battery Optimization) list.
  3. Slip on BatterySaverSettingsActivity or PowerKeeper.
  4. In the menu that appears, find your app and turn off all restrictions for it (switches should turn grey).
ParameterRecommended valueEffects of change
Auto-startIncluded.The application starts after restarting
Background activityNo restrictions.Allows work in the background without suspension
Power-intensive promptDisconnected.Removes high consumption warnings
Network access in backgroundIncluded.Allows network access in the background

What to do if there is no MIUI Optimization?
Some firmware (especially global ones) may not have this section. Alternative: 1. Use ADB-command to disable optimization: adb shell dumpsys deviceidle force-idle (requires connection to PC and enabled debugging on the device). USB). 2. Install the module MIUI Optimization Disabler via Magisk (root needed). 3. Try changing your firmware region to India or China - they have more settings.

Method 3: Bypass Android 12+ limitations with ADB

Starting with Android 12, Google tightened its background policies, and Xiaomi added its limitations on top. ADB-commands (no root required, but PC connection required).

Instructions:

  1. Download Google’s Platform Tools and unpack.
  2. Enable USB debugging in the developer settings (see previous section).
  3. Connect your smartphone to your PC and in the command line (in the folder with adb) perform: adb devices (your device should appear)
  4. Enter the command to disable battery optimization for a particular application (replace com.example.app with your app package, for example, org.telegram.messenger): adb shell dumpsys deviceidle whitelist +com.example.app
  5. To completely disable background work restrictions, use: adb shell cmd appops set com.example.app RUN_ANY_IN_BACKGROUND allow

1. does not block it antivirus (for example, MIUI Security).

2. Is there any conflict with other applications (e.g. Greenify or Battery Savers)

3. Whether you are using Second Space or Guest Mode, they have separate settings.-->

Frequent problems and solutions for specific applications

Some applications require a special approach. Here are the typical scenarios:

AnnexProblem.Decision
WhatsAppNotifications do not arrive, but messages arrive when opened.1. Enable AutoRun and Push notifications. 2. In WhatsApp settings, turn off Storage Optimization. 3. Install WhatsApp Business - it often works more stable.
Google Fit/Apple HealthData is not synchronized with smart watches1. Add to the battery optimization exceptions. 2. In the Google Fit settings, turn off Background Activity Limit. 3. Reconnect the device via Mi Fitness.
Spotify/YouTube MusicMusic stops when the screen is blocked1. Enable No Limits in Battery Settings. 2. In the Application Settings, disable Data Optimization. 3. Use the widget on the Lock screen.
Yandex.Navigator/Google MapsLoses GPS signal in the background1. Allow Exact Location in the App Settings. 2. In Settings β†’ Location, enable Search over Wi-Fi and Bluetooth. 3. Add to the optimisation exceptions via ADB.

Why do applications stop working in the background again after the MIUI update?
In case of major updates (for example, with MIUI 13 on MIUI 14) the system resets some optimization settings. To avoid this: 1. Before updating, back up the settings through Settings β†’ Additionally. β†’ Backup. 2. After updating manually check autostart and battery settings for critical applications. 3. ADB-commands, re-run them. 4. On Chinese firmware (China) ROM) After the update, you may need to re-assign your Mi Account to unlock all features.

FAQ: Answers to Frequent Questions

Can I turn off battery optimization completely?
Technically yes, but it will significantly reduce battery life. To disable optimization: Activate Developer Mode (see above). In Settings β†’ Additional β†’ For developers, find Limit Background Processes and select Without Limits. Disable Adaptive Battery in Settings β†’ Battery. After that, most applications will run in the background without restrictions, but battery consumption can increase by 15-30%.
Why don’t you get notifications after all the Telegram settings?
This problem is often associated with blocking push notifications at the level of the push notifications. MIUI. Try: Delete your Telegram account and log in again. In Telegram settings, turn off Traffic Savings. Set Telegram X, which uses a different notification mechanism. Check if it blocks notifications. MIUI Security (in Settings) β†’ Annexes β†’ Application management β†’ Telegram β†’ If nothing helps, the problem may be on the Telegram server side (for example, when using the service). VPN or informal clients).
How to check if the application works in the background?
There are several ways: use ADB-Adb shell dumpsys activity activities | grep "mFocusedApp" (shows which app is active). Install the Background App Inspector from Google Play, which displays a list of processes running in the background. For instant messengers, send yourself a message from another device and check if a notification has arrived when the screen is locked. For trackers (like Google Fit): Start recording activity and lock the screen – data should continue to be recorded.
Will this work on POCO/Redmi?
All of the methods described are relevant to POCO And Redmi, because they work on the same shell. MIUI. But there are nuances: POCO The launcher path to some settings may differ (e.g. Settings) β†’ Battery β†’ Battery settings instead of settings β†’ Battery β†’ Battery mode. POCO F4/F5 redmi K50 Maybe there's no point MIUI Optimization in Activity Launcher – Use ADB. In some models (for example, POCO X3 Pro) after resetting, you have to reset autorun for all applications. POCO with global firmware, some settings may be translated incorrectly (e.g. Auto-start instead of Auto-Start).
Can you automate the background work setting?
Yes, with Tasker or MacroDroid, you can create an automatic script that will: Enable Unlimited for selected applications after rebooting. ADB-Autostart status check and notify of problems. MacroDroid macro example: Trigger: System boot is complete. Action: Execute shell command with command: dumpsys deviceidle whitelist +com.whatsapp Additional: Add the notification "AutoStart for WhatsApp is enabled." MacroDroid permissions will be required to work. ADB Special access in settings MIUI.