r/Android • • Mar 21 '17

Android O is here

https://android-developers.googleblog.com/2017/03/first-preview-of-android-o.html
11.5k Upvotes

2.0k comments sorted by

View all comments

3.5k

u/slinky317 HTC Incredible Mar 21 '17

I love this from the documentation about limiting background location services:

Important: As a starting point, we're allowing background apps to receive location updates only a few times each hour. We're continuing to tune the location update interval throughout the Preview based on system impact and feedback from developers.

Holy shit, that's huge and should hopefully go a long day to reign in background apps constantly checking for location.

I wonder if that applies to Google Play Services?

1.4k

u/[deleted] Mar 21 '17

It does!

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.

Source: https://developer.android.com/preview/behavior-changes.html

735

u/JediBurrell I like tech Mar 21 '17

That's great and all, for battery, and shit. But I personally love Google knowing absolutely every turn I make.

I love being able to go back and see extremely precise location information. I really hope there's a way to change the limit.

636

u/RoninK Mar 21 '17

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.

292

u/zosden Mar 21 '17

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.

Source: http://android.stackexchange.com/questions/46485/is-there-a-common-gps-cache-on-android

243

u/PowerlinxJetfire Pixel 10 Pro + Pixel Watch Mar 21 '17

There already is. It's one of the really important functions of Play Services. It also factors in other sensors like Wi-Fi.

16

u/scotscott Caterpillar S61(daily), Keyone (backup), M8 (TV Remote) Mar 22 '17

However, IIRC, you can ask for last known location or current location. The latter fucks shit up anyway.

→ More replies (1)
→ More replies (4)

49

u/DigitalChocobo Moto Z Play | Nexus 10 Mar 21 '17

The shared location data is part of Google Play Services.

→ More replies (1)
→ More replies (16)

141

u/Ajedi32 Nexus 5 ➔ Pixel (OG ➔ 3a ➔ 6 -> 10pro) Mar 21 '17

Looks like that won't be too much of a problem:

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.

→ More replies (3)

213

u/[deleted] Mar 21 '17

But I personally love Google knowing absolutely every turn I make.

I can't tell what's sarcasm anymore

131

u/[deleted] Mar 22 '17

Looking at your travel history on Google maps is pretty neat. Creepy, but neat.

41

u/damnisuckatreddit Mar 22 '17

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.

→ More replies (4)
→ More replies (10)
→ More replies (19)

0

u/[deleted] Mar 22 '17

[deleted]

→ More replies (1)

13

u/Zacitus Mar 22 '17

Don't let anyone on /r/privacy read this.

→ More replies (1)
→ More replies (41)
→ More replies (23)

48

u/dontgetaddicted Mar 21 '17

I wonder what this means for GeoFencing type applications. Childs Location/Home Automation/Exercise. There are certain applications that require a high polling rate and accuracy to function well.

16

u/Ajedi32 Nexus 5 ➔ Pixel (OG ➔ 3a ➔ 6 -> 10pro) Mar 21 '17

Geofencing uses a separate API where the OS keeps track of whether you're inside or outside the fence rather than the app, so it shouldn't be affected by this. https://developer.android.com/training/location/geofencing.html

16

u/neonerz ChannelAndroid.com Mar 21 '17

There's more to it than that. For instance, at my company, all our field techs have tracking software on their tablets that automatically start at the beginning of their shift and stop at their end.

When they are in route (or basically any time they aren't actively working a job) to a clients location it pings their device pretty frequently for location updates to create a breadcrumb trail of their route, and also allows us to find the closest tech who's not currently on a job if an emergency ticket comes through. Battery life isn't a concern since they have a charging dock in their trucks.

This is a niche use case, I understand, but I have to assume LOTS of business run similar stuff.

That said, I doubt their tablets are going to get O anytime soon (probably not at all) so it's probably a non-issue for us.

32

u/Ajedi32 Nexus 5 ➔ Pixel (OG ➔ 3a ➔ 6 -> 10pro) Mar 21 '17

For that you just need to run a foreground service (which displays a persistent notification).

That way your app can do its thing, but user is aware that it's running. So it can't just silently drain battery life in the background without the user being aware of it or having any recourse to stop it from running.

→ More replies (7)
→ More replies (3)
→ More replies (9)

91

u/novaprime9 Mar 21 '17

I wonder how that'll affect apps like Life 360...?

94

u/[deleted] Mar 21 '17

[removed] — view removed comment

167

u/justjanne Developer – Quasseldroid Mar 21 '17

Yay, dozens of notifications you can't get rid of!

83

u/Klllilnaixsllli Galaxy S7 edge Mar 21 '17

This is the only thing I want from Android O. To make notifications less ugly and to be able to hide ongoing notifications without getting rid of all notifications from that app. It surprised me this hasn't been taken care of yet. Even the old TouchWiz would seperate ongoing notifications from real ones but they stopped doing that for some reason.

→ More replies (16)
→ More replies (8)
→ More replies (8)
→ More replies (11)

185

u/lawonga Dogecoin information tracker Mar 21 '17

This will basically "fix" battery life lol.

Accessing fused location a couple times when the user had 50 of these problematic apps led to a lot of drain.

83

u/Fnarley HUBRIS Mar 21 '17

Just like Volta and doze!

29

u/PacloverN1 LG V60 | Old stuff: both Nexus 7s, Nexus 5, LG V10, Note8, V40 Mar 21 '17

I ain't gonna get my expectations too high, but hey, every change that they make to reign in this shit, I'm all for it.

Not like I'll see it anytime soon stupid carrier phone

→ More replies (1)
→ More replies (3)
→ More replies (3)
→ More replies (48)