I realize O is in developer preview at this point, but there are significant changes to background location gathering. What are they?
1 Answers
The following points summarize the limits placed on location gathering on apps running on O devices:
As a starting point, background apps will receive location updates only a few times each hour (the location update interval may be adjusted in the future based on system impact and feedback from developers).
Foreground apps are not affected by these limits.
These background limits apply to all apps running on an O device, regardless of the target SDK.
Apps targeting O are further subject to limits on services started in the background. For this reason, apps targeting O should not use
PendingIntent.getService()
when requesting location updates. Instead, they should usePendingIntent.getBroadcast()
and register aBroadcastReceiver
in the manifest (apps targeting N or lower may use eitherPendingIntent.getService()
orPendingIntent.getBroadcast()
).

- 13,815
- 5
- 40
- 51
-
Does anyone know value of `few times` each hour? How few is this? – NinjaCoder Nov 03 '17 at 22:43