Improving battery life with restrictions
summary
Android limits background work with Doze/Light Doze, Adaptive Battery four buckets (apps can be deferred up to 24 hours in the rare bucket, alarms up to 2 hours), and App restrictions (no jobs, alarms, FCM, location, or background foreground services — even while charging); Pixel Battery Saver also disables location. Use JobScheduler/WorkManager and high‑priority FCM only for user‑visible interrupts; as of Jan 2019 restricted apps drop messages. Test with adb and monitor excessive wakeups in Android Vitals.
AI-written summary · about
chapters (5)
related talks
33mIs my application taking up too much power?
28mBest practices for running background work on Android
50mWTF with Android Background Restrictions
26mDon't let your app drain your users' battery
11mEffective background tasks on Android
22mPower optimization for Android
34mDoo z z z z z e
36mBackground Work in Android: Strategies and Best Practices
