Why notifications are still late with No restrictions
No restrictions lets an app skip Android's normal battery limits and run freely in the background, and on Xiaomi phones it also puts the app on the list of apps HyperOS never freezes. That protects the app itself. It doesn't protect the app that actually receives your messages.
Most apps don't receive push messages on their own. Google Play services receives them for WhatsApp, Gmail, Messenger, Instagram and most other apps, then hands each message over. When HyperOS freezes Google Play services, the message waits, even for an app you set to No restrictions. It often arrives only when you unlock the phone or open the app, together with others.
A quick way to tell: if WhatsApp, Gmail and others are all late at the same moment, Google Play services is a likely cause. On some phones Xiaomi already keeps popular apps like WhatsApp off its freeze list, so No restrictions for WhatsApp changes little there, and the late message was waiting in Google Play services.
Why you can't set Google Play services to No restrictions
The obvious next step is to give Google Play services the same setting. On the China ROM builds we tested, that isn't possible: Google Play services has a battery page, but there are no options on it. So you can't choose No restrictions, and you can't keep it off Xiaomi's freezer from Settings.
Xiaomi does keep a hidden list of apps it never freezes, but Google Play services can't be added to it from Settings. Xiaomi also rewrites that list now and then, for example when you change any app's battery setting or right after you install or remove an app, and drops anything it didn't choose. That is the missing piece when you've tried everything else. More in Google Play services and late notifications.
What the usual No restrictions advice costs you
The usual advice is to set every chat, email and social app to No restrictions, turn on Autostart and lock each one in Recents. Autostart is a small step and worth keeping. The other two aren't free: No restrictions lets an app keep working in the background day and night, and a Recents lock keeps it in memory all the time. Each app on its own may be fine, but ten of them add up.
If you've done all of that and notifications are still late, you're paying the battery cost without getting the result. See does No restrictions drain battery? for how each battery option works, should you lock apps in Recents? for the lock, and the battery page for HyperKeep's measured numbers.
What actually matters for on-time notifications
- Basic Google Services (China ROM only): Settings → Additional settings → Accounts → Basic Google Services must be on. Without it, apps can't get Google push at all.
- Autostart for the apps you need messages from: Settings → Apps → Permissions → Background autostart. Xiaomi advises keeping autostart on for apps you need notifications from.
- Notifications: Settings → Notifications & status bar → App notifications → [app], with notifications allowed and the categories you need turned on. Check the app's own notification settings too, and that the chat isn't muted.
- Do not disturb (Settings → Sound & vibration → Do not disturb) and Data saver.
- Balanced mode: the phone-wide mode in Settings → Battery → Current mode. Xiaomi says Battery saver mode freezes apps in the background, so choose Balanced.
- After a HyperOS update, check these again, because updates can reset settings.
Menu names change between HyperOS versions and regions. If a path doesn't match, search Settings for the last word, for example "autostart".
The fix for China ROM phones: HyperKeep
HyperKeep is a free app made for China ROMs of HyperOS 1, 2, 3 and 4 on Xiaomi, Redmi and POCO phones. It adds the apps you choose to Xiaomi's never-freeze list, starting with Google Play services, the piece no setting can protect. If Xiaomi drops them, HyperKeep puts them back in about 2 seconds and asks Google Play services to reconnect, so messages that were waiting can come through.
Because your apps are protected from freezing, they don't need No restrictions or a Recents lock, and they can stay on Battery saver (recommended). Only HyperKeep itself needs No restrictions. HyperKeep spots kept apps that are on No restrictions or locked in Recents and shows you how to switch them back. Xiaomi doesn't let apps change these settings, so you make the final tap.
HyperKeep sleeps until it's needed. Android wakes it only when Xiaomi changes its list, and each fix takes a few milliseconds. No root, no ADB, no ads and no account. It makes late notifications much rarer, though a few limits, like HyperOS's night-time sleep, are outside any app's control. See how it works and the battery page, follow the setup guide, or download HyperKeep.
Not sure which ROM you have? Open Settings → About phone and look at the HyperOS version. If the letters near the end contain "CN" (like OS4.0.6.0.XPKCNXM), it's the China ROM. HyperKeep is made for China ROMs and isn't built or tested for Global ROMs.