Why Gmail only shows new email when you open it
For your Google account, Gmail doesn't keep asking the server for new mail. When an email arrives, Google sends a push message through Google Play services, which wakes Gmail so it can sync and notify you.
To save battery, HyperOS freezes apps you aren't using. A frozen app is paused completely and can't receive that push. If Gmail or Google Play services is frozen, new email waits until you unlock the phone or open Gmail, and then it all appears at once.
Xiaomi keeps a hidden list of apps it never freezes, but it rewrites that list from time to time and drops apps it didn't choose. This is mostly a China ROM problem: Google services are optional there, and Google Play services has no battery switch on the phones we tested, so you can't protect it with settings.
On a China ROM? Turn on Basic Google Services first
Imported phones bought from China, China-only models such as the Redmi K series, and phones flashed with a Chinese ROM run the China version of HyperOS. To check, open Settings → About phone and look at the HyperOS version, for example OS4.0.6.0.XPKCNXM. If the letters near the end contain "CN", it's a China ROM. Global ROMs show MI, EEA ROMs show EU and Indian ROMs show IN.
On a China ROM, Gmail gets no push at all until Google services are on. Go to Settings → Additional settings → Accounts → Basic Google Services, turn it on, and make sure you're signed in to your Google account.
Check Gmail's sync and notification settings
These checks are quick, cost no battery and help on any phone.
- In Gmail's settings, tap your account and check that notifications are on. If they're set to high priority only, Gmail notifies you only for mail it thinks is important.
- In the same account settings, make sure Gmail sync is on. If sync is off, Gmail won't fetch new mail in the background.
- If you use labels or inbox categories, check that notifications are on for the ones you care about.
- Open Settings → Notifications & status bar → App notifications → Gmail and make sure notifications, and the categories you need, are allowed.
- Check that Do not disturb (Settings → Sound & vibration → Do not disturb) and Data saver aren't holding Gmail back.
The Xiaomi settings that help Gmail
Menu names change between HyperOS versions and regions. If a path doesn't match, search Settings for "autostart" or "battery".
- Turn on Autostart. Go to Settings → Apps → Permissions → Background autostart and turn on Gmail. Xiaomi advises keeping autostart on for apps you need notifications from.
- Check the battery setting. On HyperOS 4 China ROMs, open Security → Gmail → Power. On Global ROMs, long-press the Gmail icon, then tap App info → Battery saver.
- Use Balanced mode. In Settings → Battery → Current mode, choose Balanced. Xiaomi says the phone-wide Battery saver mode freezes apps in the background.
Looking for a battery switch for Google Play services? On the phones we tested, its battery page has no options. That gap is the main reason Gmail can stay late after you change everything above.
Do these settings drain the battery?
No restrictions lets Gmail skip Android's normal battery limits and run freely in the background, and Xiaomi stops freezing it. It helps, but nothing holds Gmail back anymore, and the cost adds up with every app you set this way.
Autostart on its own only lets Gmail start itself when it needs to, so it costs battery only when Gmail actually does work. A Recents lock keeps Gmail in memory all the time, which costs RAM and battery.
The phone-wide Battery saver mode is a different thing from the per-app Battery saver (recommended). The phone-wide mode freezes apps in the background, so it delays Gmail whatever you set per app.
The low-battery 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. Start with Google Play services, since it carries Gmail's messages, then turn on Gmail. If Xiaomi drops them, HyperKeep puts them back in about 2 seconds and asks Google Play services to reconnect.
Gmail can then stay on Battery saver (recommended). HyperKeep is the only app that needs No restrictions. HyperKeep sleeps until it's needed. Android wakes it only when Xiaomi changes its list, and each fix takes a few milliseconds.
No root and no computer needed, no ads and no account. Every release is tested on a real Xiaomi phone with a China ROM. It isn't built or tested for Global ROMs, but the Gmail and Xiaomi settings above help on any phone. Download HyperKeep or see how it works.
HyperKeep makes late email much rarer, and Gmail's own sync and notification settings still need to be on, because no app can turn them on for you.