Building for Android O
summary
Android O stops apps from starting background services causing an IllegalStateException if attempted and instead forces use of JobScheduler or Firebase JobDispatcher and the support library JobIntentService as a replacement for IntentService. There is a short grace period of a few minutes and temporary whitelist windows for high priority FCM SMS and notification actions. Implicit manifest broadcasts are restricted while explicit broadcasts and dynamic registration remain allowed. Location in the background is throttled to a few times an hour unless using batching or a foreground service and developers must switch from PendingIntent.getService to getBroadcast or geofencing and opportunistic requests with fastestInterval set to capture frequent points.
AI-written summary · about
chapters (15)
- 0:00Start
- 0:19Building for Android
- 3:44System Health
- 14:53User Visible
- 19:42Background Services
- 21:11JobScheduler
- 24:24Dynamic Registration
- 25:28Firebase Cloud Messaging
- 26:11JobintentService V4 Support Lib
- 26:49Wakeful BroadcastReceiver
- 27:07Help the OS help you!
- 28:07Foreground Services Would the user approve
- 29:28Do you need to do it?
- 33:56Location Limits
- 39:34Location Strategies Rethink strategies for pre-O acos
related talks
32mBuilding for Android Oreo
34mChange Can be Good: The New World of Android Oreo
34mDoo z z z z z e
28mBest practices for running background work on Android
50mWTF with Android Background Restrictions
11mEffective background tasks on Android
37mA guide to using foreground services and background work in Android 14
36mBackground Work in Android: Strategies and Best Practices
