Ignore battery optimization
Asks to be exempt from Doze and app standby.
In one line
Can ask to keep running in the background on Android, only if you agree
Asks to be exempt from Doze and app standby.
Lets the app run in the background more freely at the cost of battery. The user confirms with a dialog.
What it can and can't do
What the user does: A system box asks if the app may run in the background and you tap Allow
It can
- Ask you to turn off battery limits for the app
- Stay awake longer in the background once you allow it
- Use less strict Doze and standby rules after you agree
It cannot
- Turn off battery limits without your yes
- Get this exemption on iPhone, which has none
- Use it forever if you later change your battery setting
How it differs between platforms: Android shows a system confirmation. iPhone has no such exemption; apps use background modes or push.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Not supported |
| First version | Android 6.0 (API 23) | Not available |
| Permission or entitlement | REQUEST_IGNORE_BATTERY_OPTIMIZATIONS | Not listed |
| Protection level | normal | none |
| How access is granted | settings | not-exposed |
| What the user sees | System dialog: Allow app to run in background | none |
| How long it lasts | Until revoked | none |
| How to take it back | Settings > Apps > Battery > Unrestricted | Not listed |
| Store policy | Play: restricted; allowed only when core function breaks under Doze | App Review 2.5.4 |
| API | PowerManager.isIgnoringBatteryOptimizations | BGTaskScheduler |
| Notes | Declared as a normal permission; the exemption needs user confirmation. | iOS gives no such exemption; use Background Modes or push. |
Data you get
What comes back: Exemption state
Shape: event
How often: on change
No individual data fields. The signal is the access itself.
Technical limits
- Play restricted
- No iOS equivalent
The story
What it is
Asks to be excused from Android's rules that put idle apps to sleep.
For you
You see a pop up asking Allow app to always run in the background. If you say yes, the app works more reliably but may cost more battery.
For makers
Makers want reliable alerts and syncing for chats, health and tracking. Google limits who may ask, because it hurts battery life.
Where you see it
| Type | Example | Apps |
|---|---|---|
| messaging | A chat app asks to stay awake so messages are never late. | Signal |
| health | A medical sensor app asks for it so alerts are never missed. | Dexcom |
| fitness | A fitness tracker asks for it to record a full ride without gaps. | Strava |
| smart-home | A home security app asks for it so door alerts are instant. | None named |
| games | A game asks for it to keep a multiplayer match alive in the background. | None named |
| enterprise | A field work app asks for it to keep location checks running on a shift. | None named |
| utilities | A VPN or file sync app asks for it so it does not disconnect. | Proton VPN, Syncthing |
Risks
- Drains battery
- Apps may nag you to allow it
Android and iPhone in short
- Android: You confirm in a system dialog. It is a standard permission with a user check.
- iPhone: iOS has no such exemption. Apps use background modes or push messages.
What the platform says
- Google: Doze and App Standby. Google describes Doze and standby as ways to save battery by putting idle apps to sleep, with some exceptions.
Good uses and abuse
Legitimate uses
- Messaging, health apps
Known abuse
- Aggressive background drain
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 3 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 and app standby introduced
Related capabilities
Related
- Foreground service. Can run long tasks on Android with a visible notification, but only for a stated purpose
Sources
How well checked: Based on official documentation.