Doze and idle mode
When the phone is still and unplugged, Android delays jobs, alarms and network to save battery.
In one line
Can't force the phone to stay awake; Doze delays jobs, alarms and network
When the phone is still and unplugged, Android delays jobs, alarms and network to save battery.
Explains why background trackers go quiet at night. Apps get brief maintenance windows; only high priority push, exact alarms and foreground services run freely.
What it can and can't do
What the user does: Nothing. It happens when the phone sits still and unplugged
It can
- Check if the phone is in idle mode or ignores battery limits
- Ask you to exempt it from battery optimization
- Run short jobs during maintenance windows on Android
- Use Low Power Mode status on iPhone
It cannot
- Run network jobs while Doze is on, except in maintenance windows
- Set more than about 7 alarms per hour while the phone is idle
- Avoid iPhone suspending it within seconds of leaving the app
- Exempt itself without your choice in Settings
How it differs between platforms: Android has Doze and idle mode. iPhone has no Doze but suspends apps quickly and slows work in Low Power Mode.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Partial |
| First version | Android 6.0 (API 23) | iOS 6.0 |
| Permission or entitlement | REQUEST_IGNORE_BATTERY_OPTIMIZATIONS (Play-restricted) | Not listed |
| Protection level | normal | none |
| How access is granted | settings | none |
| What the user sees | Settings > Battery > Unrestricted removes the app from optimization | Low Power Mode toggle only |
| How long it lasts | Doze deepens over hours; maintenance windows get longer | n/a |
| How to take it back | Settings > Apps > Battery usage | Settings > Battery |
| Store policy | Play: ignore battery optimizations only for apps whose core function breaks otherwise | None listed |
| API | PowerManager.isDeviceIdleMode(), isIgnoringBatteryOptimizations() | ProcessInfo.isLowPowerModeEnabled, NSProcessInfoPowerStateDidChange |
| Notes | While-idle alarms limited to 7 per hour; network and wakelocks suspended except in maintenance windows | iOS suspends apps within seconds of backgrounding; no Doze concept; Low Power Mode reduces fetch and push |
Data you get
What comes back: Doze limits
Shape: object
How often: Static
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
while_idle_alarms | integer | per hour | 7 | system |
exempt | list | None | high priority FCM, exact alarm, FGS | Not listed |
Technical limits
- Maintenance windows lengthen over time
- FCM high priority is the sanctioned wake path
The story
What it is
When your phone sits still and unplugged, Android pauses most app work to save battery.
For you
You notice it as better battery life overnight. It may also delay a message or an alarm by some minutes. Only high priority messages, exact alarms and some services get through.
For makers
Makers must plan around it: they use high priority push, exact alarms and foreground services for urgent work. Some apps ask users to switch off battery limits, which Google discourages.
Where you see it
| Type | Example | Apps |
|---|---|---|
| messaging | A chat app receives a message through a high priority push while the phone sleeps. | WhatsApp, Signal |
| productivity | A calendar app rings a meeting alarm on time using an exact alarm. | Google Calendar |
| fitness | A step tracker batches data and syncs when the phone wakes. | None named |
| games | A game that wants energy refilled uses a timed notification rather than a background job. | None named |
| security | A bad app asks you to turn off battery limits so it can keep running at night. | None named |
| smart-home | A security camera app uses high priority alerts to wake the phone when motion is seen. | Ring |
Risks
- Evading Doze with prompts
- Delayed alerts
Android and iPhone in short
- Android: This is Android only, with Doze and App Standby buckets that decide how often an app can run.
- iPhone: iPhone has no Doze, but it limits background work through its own scheduler.
What the platform says
- Google: Doze and App Standby. Android saves battery by deferring background work when the device is idle.
Good uses and abuse
Legitimate uses
- Battery life
Known abuse
- Evading Doze with battery opt-out prompts
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2015-10, Android 6.0 (API 23): Doze mode introduced
- 2016-08, Android 7.0 (API 24): Doze on the go (screen off, moving)
Related capabilities
Related
- App Standby Buckets. Can't run as much in the background if you rarely open the app
- FCM priority and deprioritization. Can wake a sleeping Android phone with a high priority push, but misuse gets slowed down
Same idea on the web
- System Wake Lock. Can't keep your device awake with the screen off; no browser ever shipped this
- Push, periodic sync and background fetch. Can wake a site's background script after you leave, through push, timed sync or downloads
Sources
How well checked: Checked against real behavior.