Battery life is something that can always improve, and Google is introducing a handful of battery-preserving measures in its next mobile OS version. The most notable is a system notification in Android 13 for apps with excessive background battery usage.
Android 13 introduces a system notification that appears when your app consumes a large amount of device battery during a 24-hour period. This new notification appears for all apps on devices that run on Android 13, regardless of target SDK version.
Several years ago, Android had a “using battery” alert, but the upcoming notification is more targeted. After appearing, it won’t pop-up again “until at least 24 hours later,” additionally:
If the system detects high battery usage from your app while the app is displaying a notification that’s associated with a foreground services, the system waits until the user dismisses the notification, or the foreground service finishes, and shows the notification only if your app continues to consume a large amount of device battery.
There will also be another alert for long-running foreground services (at least 20 hours within a 24-hour window). The “APP is running in the background for a long time. Tap to review.” notification opens the Foreground Services (FGS) Task Manager.
However, the following apps will be exempt from battery-preserving measures:
- System apps and system-bound apps
- Companion device apps
- Apps running on a device in Demo Mode
- Device owner apps
- Profile owner apps
- Persistent apps
- VPN apps
- Apps that have the
ROLE_DIALER
role - Apps that the user has explicitly designated to provide “unrestricted” functionality in system settings
More on Android 13:
- Here’s everything new in Android 13 Developer Preview 2 [Gallery]
- Android 13 DP2: Here’s the new built-in QR code reader in action [Video]
- Taskbar for tablets & big screens gets its own app drawer
- ‘Do Not Disturb’ rebranded to ‘Priority mode’
FTC: We use income earning auto affiliate links. More.
Comments