Mobile apps

What is battery optimization?

Battery optimization is the group of operating-system features that restrict what apps can do in the background to save power, such as Doze mode and App Standby on Android and background app refresh limits on iOS.

What gets limited

Network access, timers, alarms, location updates and background jobs. An app that was last opened days ago is treated as low priority and may receive notifications late.

The manufacturer layer

Some Android brands add stricter task killers on top of Google's rules, which can stop apps that are not whitelisted. Sites like dontkillmyapp.com document brand-specific behavior. Users of those phones sometimes need to set an app to unrestricted.

How good apps cope

  • Use high-priority push only for truly time-critical events.
  • Prefer system schedulers (WorkManager, BGTaskScheduler) over custom timers.
  • Explain in the app why an exemption is needed, and link to settings instead of nagging.
  • Do not request the battery exemption without a real need, since Google Play restricts that permission.

Test with the phone locked and idle for a long period, not just with the debugger attached.

Questions, answered

Aggressive power management on that brand or setting is delaying wake-ups.

It can ask the user, but only apps with a justified use are allowed to request the exemption.

By the Stegnor team · Updated