In order to preserve battery, user experience, and system health, background apps receive location updates less frequently when used on a device running Android O. This behavior change affects all apps that receive location updates, including Google Play services.
I would like to see a separate permission for 'continuous' location information vs. 'occasional' location. That way apps like Maps that need it can have it, but you can rein in the rest.
I would be surprised if there isn't a caching mechanism in place for location information. If apps A,B,C,D want to get location information it makes 0 sense to ping the GPS 4 times for the same thing.
The Play Services does so much more. It's no longer just "part of Android", but Android is part of it.
Google has been moving functionality from Android to Play Services for quite some time now. This way they can update/fix the system without the clunky "system uppdate" (which requires co-op from your service provider).
That feature is implemented in both passive location receivers (which can piggyback off a foreground app's notification request), and the FusedLocationProvider which is a quite complex way of sharing location data with other apps without needing to query location again. Both methods are currently available in 5.0+, but is improved further with O.
Note: If your app needs access to location history that contains time-frequent updates, use the batched version of the Fused Location Provider API elements, such as the FusedLocationProviderApi interface. When your app is running in the background, this API receives the user's location more frequently than the non-batched API. Keep in mind, however, that your app still receives updates in batches only a few times each hour.
So it sounds like the OS is still keeping track of your location, it's just not letting background apps trigger a refresh on-demand, and it'll only wake up those apps every so often to process that information in batches instead of waking them up every time your location updates.
Makes me kinda depressed cause it shows me travelling this huge distance only to scribble around in one spot and then turn back. My commute could lead to so many adventures if only I had time to take the side streets.
1.4k
u/[deleted] Mar 21 '17
It does!
Source: https://developer.android.com/preview/behavior-changes.html