20. What we need to know?
AppStandby
Touches: Application
Condition: App in background
Sync allowed: once per day
Doze
Touches: Device
Condition: Screen off & unplugged
Sync allowed: exponential window
Restricted: network, wakelocks, Alarm*, syncadapter, JobScheduler
How to fit: FCM or exclusions (settings allowed for
IM, Task automation, Peripheral Companion)
25. Think and Act!
User-initiated traffic App-initiated traffic Server-initiated traffic
Pre-fetch Network Data
Use batch-requests
(multi-payload)
Batch and Schedule Requests Push(Gcm/Fcm), not pool
26. SyncAdapter – hard to implement and configure(account,
ContentProvider)
JobScheduler - Minimum API 21
Solution … Firebase JobDispatcher
DEMO