Push notifications have become an integral part of interaction with modern smartphones, but few people think about where they are stored in the system. On Xiaomi devices with a MIUI shell, the notification mechanism has its own features β from the physical location of files to the logic of system services. If you have ever tried to find an archive of notifications, clear cache or figure out why some alerts disappear, this article will help clarify the situation.
Unlike Android in its pure form, where notifications are managed by standard NotificationManager, MIUI adds its own layers of abstraction. This means that storage paths, file formats, and even display logic may differ. For example, some notifications are duplicated in system application databases, while others are stored temporarily and deleted after reading. Understanding these nuances will help not only optimize the deviceβs operation, but also restore lost alerts or customize their display to your needs.
Next, weβll look at where push notifications are physically stored on Xiaomi, how theyβre organized in the system, and what tools allow you to manage them. From system paths to manual cleaning methods, youβll get a complete guide with practical tips and warnings about possible risks.
Physical Storage of Push Notifications: System Paths in MIUI
At the operating system level, notifications in Android (including MIUI) are stored in multiple locations, not all of which are accessible to the user without root permissions.
- π NotificationManager: the primary system service that manages all notifications, and its data is stored in a file. /data/data/com.android.providers.telephony/databases/mmssms.db (for SMS) and /data/system/notification_policy.xml (However, access to these files is only possible with superuser rights.
- π System application cache: Many notifications (e.g. from Mi Push Service) are temporarily stored in folders /data/data/com.xiaomi.xmsf/ or /data/data/com.miui.system/. Log files and cached data can be found here, but they are often encrypted.
- π App folders: Each app (e.g. WhatsApp, Telegram) stores its notifications in its own database along the way /data/data/[package_name]/databases/. For example, for Telegram, this will be /data/data/org.telegram.messenger/databases/.
It is important to understand that most notifications are stored temporarily and deleted after reading or restarting the device, except for notifications from system services (such as MIUI updates or security alerts) that can be archived in separate logs.
If you need to find a specific notification, such as from a banking application, first check its own database, which requires root access or the use of specialized tools like Root Explorer or SQLite Editor.
β οΈ Warning: Direct editing of system databases (e.g., mmssms.db) can cause notifications to malfunction or even data loss.
How MIUI Manages Notifications: The Role of System Services
At MIUI, several key services are responsible for processing push notifications, each of which plays a role:
- π Mi Push Service (com.xiaomi.xmsf) is the primary service responsible for delivering push notifications from Xiaomi applications (such as Mi Home, Mi Fit) and some third-party services. It interacts with the Xiaomi cloud and stores temporary data in the Xiaomi cloud. /data/data/com.xiaomi.xmsf/.
- π± Security Center (com.miui.securitycenter) β controls permissions for displaying notifications, blocking spam and prioritizing. /data/data/com.miui.securitycenter/shared_prefs/.
The MIUI is aggregating notifications from multiple sources and can duplicate them in its own databases, for example, if you received a notification from VKontakte, it can be stored simultaneously:
- In the database of the VK application itself.
- In the Mi Push Service cache (if the application uses Xiaomi services).
- Security Center logs (if the notice has been marked as important).
This makes it difficult to find a specific notification, but it ensures that the delivery is reliable, for example, if an application crashes, MIUI can recover the notification from the cache of the system service.
Where notifications from Xiaomi system applications are stored
Xiaomi system applications (e.g. Mi Home, Mi Fit, Themes) use its own push notification mechanism, which is integrated with Mi Account.
- Local database: each system service has its own database in the /data/data/[package_name]/databases/. For example, for Mi Home, it will be /data/data/com.xiaomi.smarthome/databases/. It stores both active and archival notifications (for example, alerts about new devices in a smart home).
- Cloud storage: If you are logged in to Mi Account, some notifications sync to the Xiaomi cloud, and can be viewed on other devices connected to the same account, but only through APIs or official apps can you access cloud data.
Example of notification storage structure for Mi Fit:
| Type of data | Storage path | Format | Access without root |
|---|---|---|---|
| Active notifications | /data/data/com.xiaomi.hm.health/databases/mi_fit.db | SQLite | β No. |
| Archive of notifications | /data/data/com.xiaomi.hm.health/shared_prefs/ | XML | β No. |
| Cache push messages | /data/data/com.xiaomi.xmsf/cache/ | Binary | β No. |
| Logs of error | /sdcard/MIUI/debug_log/ | TXT | β Yes. |
If you need to recover a notification from a system application (such as a missed low charge alert for a smart bracelet), try the following steps:
- Check the notification archive in the app itself (for example, Mi Fit has a Notifications section).
- If the notification came through Mi Push, try syncing the data to the cloud (in Xiaomi account settings).
- Use it. ADB For database extraction (if root access is available): adb pull /data/data/com.xiaomi.hm.health/databases/mi_fit.db Open the file with SQLite Browser.
β οΈ Note: When retrieving databases through ADB Make sure that the device is debugging on USB (Settings β The phone. β Version. MIUI β Press the developer mode 7 times without it, the team won't work.
How to clear the notification cache on Xiaomi: step-by-step instructions
If notifications start to duplicate, appear late or disappear altogether, the problem can be hidden in a crowded cache.
Clear the cache of system applications (Mi Push Service, Security Center)
Delete the data of the application, the notifications of which are glitched
Reset the device
Check your Mi Account sync settings (if you use the cloud)-->
Detailed instructions:
- Cache cleanup Mi Push Service: Go to Settings β Applications β App management. Find Mi Push Service (or Xiaomi push notification service). Click Storage β Clear cache.
- Reset notification settings for a specific application: Go to Settings β Notifications and Status bar β Notification management. Select a problem app (like WhatsApp). Disable and turn on notification permission again.
- Delete Security Center data (if notifications are blocked): In Settings β Applications, find Security Center. Click Storage β Delete data (this will reset all security settings, including permissions for notifications!).
If the problem isnβt solved, try turning off battery optimization for the problem app:
π‘
If the notifications stop coming after cleaning the cache, check if the background mode for the application is turned off. In MIUI, it is often blocked by the system to save charge.
Can I restore deleted notifications to Xiaomi?
Recovering deleted notifications on Xiaomi is a non-trivial task, but in some cases it is possible. Success depends on where the notification was stored and how long ago it was deleted.
Recovery methods:
- π In-app archive check: Some apps (such as Gmail or Telegram) store notification history inside themselves. Go to the app settings and look for the Notifications or Archives section".
- π± Backups: If you have backup enabled in Mi Cloud, try restoring your app data. β Mi Account β Mi Cloud β Data recovery.
- π» Analysis of logs through ADB (For experienced users only: adb shell dumpsys notification --last 50 This team will bring the last 50 notifications from the system (developer rights required).
If the notification was a push message (for example, from Viber or Facebook), its recovery is unlikely, since such messages are stored temporarily, except if the application syncs data with the cloud (for example, Telegram allows you to view the notification history on other devices).
β οΈ Warning: Recovering notifications through Mi Cloud backups will regress all application data to the state at the time of backup creation, meaning that new messages or settings may be lost.
What if notifications disappear after the MIUI update?
How to disable or configure notification storage
If you're annoyed by the large number of notifications you have, or if you want to optimize the storage of notifications, MIUI provides flexible settings. Here's how to manage them:
1. Disabling notifications for specific applications:
- Go to Settings β Notifications and Status bar β Notification management.
- Select the app from the list.
- Turn off the Allow Notifications switch.
Setting the priority of notifications:
- In the same notification management menu, you can select a priority for each application: π Important β notifications will be displayed in a pop-up window and accompanied by sound. π Ordinary - standard display in the curtain. π Quiet β notifications will be hidden from pop-ups and sounds.
3. Restriction of storage of notifications:
To prevent notifications from accumulating in the curtain:
- Go to Settings β Notifications and Status bar β More.
- Activate Automatically Delete Notifications and set a limit (e.g., 50 notifications).
4. Blocking spam notifications:
MIUI has a built-in spam filter:
- Go to Settings β Notifications and Status bar β Spam filter.
- Turn on the option and blacklist unnecessary apps.
π‘
Setting up notifications through the Security Center allows you not only to block spam, but also to limit the background activity of applications, which has a positive effect on battery life.
Frequent push notification issues on Xiaomi and their solutions
Xiaomi users often face typical push notification problems, and here are the most common ones and how to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| Notifications don't come in. | The app is blocked by Security Center or battery optimization | Add the app to battery exceptions and allow auto-start in Settings β Permissions β Auto-Run |
| Notifications are coming with a delay | Weak Internet connection or limited background traffic | Turn off background traffic restriction in Settings β SIM-maps and mobile networks β Transfer of data β Background restriction |
| Notifications are duplicated | The conflict between Mi Push Service and the standard Android mechanism | Clear the Mi Push Service cache and restart the device |
| Notifications disappear after reboot | Resetting the cache of system services | Check your sync settings in Mi Account or turn off automatic notification cleanup |
| Notifications from Google services (Gmail, YouTube) are not working | Google Play Services is not available or is outdated | Update Google Play Services via Play Market or install manually from APKMirror |
If none of these methods worked, try resetting your network settings:
- Go to Settings. β SIM-maps and mobile networks β Resetting network settings.
- Confirm the reset and restart the device.
This procedure will reset all network settings (including saved Wi-Fi networks), but often solves problems with delivering push notifications.