Skip to Content
Platform.Ontology

Doze and idle mode

When the phone is still and unplugged, Android delays jobs, alarms and network to save battery.

Works without askingNotifications and backgroundAndroid background limitsAndroid and iPhoneIn the background

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

AndroidiPhone
StatusSupportedPartial
First versionAndroid 6.0 (API 23)iOS 6.0
Permission or entitlementREQUEST_IGNORE_BATTERY_OPTIMIZATIONS (Play-restricted)Not listed
Protection levelnormalnone
How access is grantedsettingsnone
What the user seesSettings > Battery > Unrestricted removes the app from optimizationLow Power Mode toggle only
How long it lastsDoze deepens over hours; maintenance windows get longern/a
How to take it backSettings > Apps > Battery usageSettings > Battery
Store policyPlay: ignore battery optimizations only for apps whose core function breaks otherwiseNone listed
APIPowerManager.isDeviceIdleMode(), isIgnoringBatteryOptimizations()ProcessInfo.isLowPowerModeEnabled, NSProcessInfoPowerStateDidChange
NotesWhile-idle alarms limited to 7 per hour; network and wakelocks suspended except in maintenance windowsiOS 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

FieldTypeUnitRangePrecision
while_idle_alarmsintegerper hour7system
exemptlistNonehigh priority FCM, exact alarm, FGSNot 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

TypeExampleApps
messagingA chat app receives a message through a high priority push while the phone sleeps.WhatsApp, Signal
productivityA calendar app rings a meeting alarm on time using an exact alarm.Google Calendar
fitnessA step tracker batches data and syncs when the phone wakes.None named
gamesA game that wants energy refilled uses a timed notification rather than a background job.None named
securityA bad app asks you to turn off battery limits so it can keep running at night.None named
smart-homeA 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

Good uses and abuse

Legitimate uses

  • Battery life

Known abuse

  • Evading Doze with battery opt-out prompts

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bitsNot ratedRough 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)

Same idea on the web

Sources

How well checked: Checked against real behavior.

On this page