How to Make Your Health App Work in the Background on Xiaomi

Xiaomi smartphone owners often face the annoying situation when the pedometer stops counting steps and pulse or sleep notifications don’t arrive on time, due to the aggressive memory management policies of the MIUI and HyperOS operating system, which seek to extend the battery life of the device at any cost.

To remedy this, you need to manually set priorities for the system component responsible for collecting health data. Simply running an application is not enough, since once it is folded, it is subject to strict power consumption restrictions. In this guide, we will discuss all the necessary steps to ensure stable background operation.

It should be understood that the settings may vary slightly depending on the firmware version and model of your Xiaomi. However, the overall algorithm of actions remains the same for most modern devices of the brand. Ignoring these settings will lead to permanent disconnection of connection with wearable devices and loss of statistics.

Understanding the work of MIUI optimization

Xiaomi’s operating shell uses a complex back-end mechanism that automatically detects β€œunnecessary” applications. The algorithm analyzes the frequency of use and battery consumption, making a decision to stop the process. For activity trackers, this is a critical problem, since they must be running constantly.

The user must be aware that standard out-of-the-box settings are geared toward maximum charge savings, not data acquisition accuracy. The system can calculate that if the screen is turned off, the health app is no longer needed, which causes Mi Fitness or Zepp Life to stop receiving data from the wristband.

  • πŸ“‰ Aggressive completion of processes in sleep mode.
  • πŸ”‹ Limiting background activity to save energy.
  • 🚫 Locking Autostart After Rebooting the Device.

⚠️ Warning: Without manual exception settings, the system will constantly β€œkill” the synchronization process, making wearing a smart bracelet meaningless.

Set up autostart and background activity

The first and most important step is to allow autoruns. Without this right, the app won't be able to start its services immediately after turning on the phone or restarting. You need to find the section responsible for managing the applications in the settings menu.

Go to Settings β†’ Applications β†’ All applications and find Health (or Mi Fitness) in the list, where you activate the AutoStart switch, which will give the system a signal that this software has the right to start with the operating system.

β˜‘οΈ Checking basic settings

Done: 0 / 4

Next, you have to stop the system from restricting background work. In the same app information menu, find "Activity Control" or "Battery Savings." Select "No Limits" option. This is a critical parameter that prevents the OS from forcibly stopping the process.

Fixing the application in memory (Lock)

Many users forget about the app attachment function in RAM, which tells the Task Manager that the application cannot be unloaded when the memory is cleared. Launch the Health app, then go to the open tab menu (swipe from the bottom up and hold or menu button).

Find the app card and press the lock or pull the card down (depending on the MIUI version). The lock icon should appear next to the name. Now, even if you click the "Clear All" button, the process will remain in memory.

  • πŸ”’ Protection against accidental memory cleansing.
  • ⚑ Guaranteed start of synchronization services.
  • πŸ”„ Permanent connection to wearable electronics.

πŸ’‘

Keep not only the Health app in your memory, but also a companion app (such as Mi Wear or Zepp) if they are used separately.

It is worth noting that on some firmware versions, the lock icon may only appear after you clear the memory once, leaving the application running. If the lock is not installed immediately, try to start cleaning the memory and then fix the desired program again.

Set up notifications and access to data

Properly working often requires enhanced notification access. If the application is not allowed to read notifications from other programs, it will not be able to display messages from messengers on the screen of your smart bracelet. This is configured in Settings β†’ Notifications and Status bar β†’ Access to notifications.

You need to find your health app and activate the slider, and make sure that the Notification Management section inside the app allows all categories of alerts, and sometimes the system hides "important" notifications unless you're given high priority.

⚠️ Note: If call notifications don’t arrive on the bracelet, check if Do Not Disturb mode is enabled in the companion app itself, not just on Android.

Special attention should be paid to access to geolocation. For tracking jogs and walks, the application requires constant access to GPS. In the request for permissions, select the option "Allow always" rather than "Only when using", this will allow the track to record even when the screen is off.

Solving Bluetooth and Synchronization Problems

A common cause of failure is an unstable Bluetooth connection. There is a feature on Xiaomi smartphones that can turn off Bluetooth to save power. You need to make sure that the Bluetooth settings have enabled the option to "Make all devices" and removed restrictions on background scanning.

If the sync is still late, try resetting Bluetooth. Go to Settings β†’ Connection and Sharing β†’ Bluetooth β†’ Additional settings (three dots in the corner) and select reset. After that, you will need to re-sanctify the device.

Hidden commands for Bluetooth diagnostics
In some cases, it helps to enter a command into the engineering menu to check the signal power, but this requires caution. Standard path: Dial ##6484##, select the Bluetooth test and check the module's operation.

It’s also worth checking if power saving mode is enabled for the Bluetooth module itself in the developer’s hidden settings, although in recent versions of HyperOS, access to these options is often limited.

Specifics of work for different models of bracelets

Owners of different devices can face different nuances. For example, for the Mi Band, the stability of the Bluetooth MIDI service is critical, which sometimes also falls under the cleaning. For Amazfit or Huawei watches, it is important to configure the corresponding third-party applications in the same way.

Below is a table that will help you navigate the basic applications and actions required for different ecosystems.

The deviceMain annexCritical settingSupplementary service
Mi Band 4-8Mi Fitness / ZeppAuto-startBluetooth
AmazfitZeppNo restrictions.Geolocation
Huawei WatchHealth / Huawei HealthRetention in memoryNotifications
Xiaomi WatchHealth (Systemic)PermitsSynchronization

Note that Xiaomi’s Health app is often linked to your Mi Account. account login issues can block synchronization of data to the cloud, even if local steps are counted.

πŸ“Š What app do you use to track activity?
Mi Fitness (Health)
Zepp Life
Samsung Health
Google Fit
Other

Additional recommendations and conclusions

If none of the above methods worked, the problem may be the software version conflict: Make sure both the app and the phone firmware are updated to the latest available version. Older versions of MIUI may have bugs patched in security patches.

In a pinch, you can try to remove the Health app updates and reinstall it through the GetApps store or Google Play, which will reset all internal cache and configuration errors.

  • πŸ”„ Regularly reboot your smartphone to reset memory errors.
  • πŸ“‘ Follow the firmware updates of the Bluetooth module.
  • πŸ—‘οΈ Clean the app cache once a month.

⚠️ Note: When you delete the application data, all unsaved static will be lost. Make sure the data is synchronized with the cloud before resetting.

πŸ’‘

Comprehensive setting of access rights, autostart and fix in memory ensures stable operation of the activity tracker 24/7.

Compliance with these guidelines will make your smartphone a reliable health management center that will not fail at an important moment. Xiaomi system is powerful, but requires competent permission management for specific tasks.

Why does the Health app drain the battery after setting up?
Once the restrictions are lifted, the app is allowed to run continuously, which naturally increases power consumption. However, modern Xiaomi processors are quite efficient, and the increase in consumption is usually no more than 2-4% per day, which is an acceptable fee for accurate tracking.
Can I completely disable MIUI optimization?
Disabling MIUI optimization completely is possible through the developer menu, but it is not recommended for regular users.It can lead to unstable operation of other system functions and reduce overall battery life.
What to do if the settings are reset after the update?
Major firmware updates (e.g., switching from MIUI 13 to 14) often reset access rights, and after each major update, you need to recheck the Autostart and No Restrictions for important applications.
Does the β€œFlight” mode affect the operation of the application?
Yes, in flight mode, Bluetooth shuts down, and synchronization with the bracelet becomes impossible, and the application will accumulate data locally, but will not be able to transfer it to the phone until the connection is restored.