Building for Android Oreo
summary
Android Oreo forbids starting background services and instead requires use of scheduled work (JobScheduler / Firebase Job Dispatcher) or the new startForegroundService API for immediate foreground work, with wake locks released when no active component exists. Location updates throttle to a few updates per hour for background apps but allow batched location delivery; geofencing caps at 100 geofences per app and recommends region-swapping or beacons. PendingIntent must use getBroadcast for background callbacks.
AI-written summary · about
chapters (7)
- 0:00Introduction and welcome
- 1:36Android Oreo background changes
- 10:24Background execution limits
- 16:39Broadcast receiver restrictions
- 22:14Location updates in background
- 29:55Foreground service best practices
- 31:59Q&A and resources
related talks
34mChange Can be Good: The New World of Android Oreo
42mBuilding for Android O
37mA guide to using foreground services and background work in Android 14
50mWTF with Android Background Restrictions
11mEffective background tasks on Android
28mBest practices for running background work on Android
36mBackground Work in Android: Strategies and Best Practices
38mGuide to Foreground Services
