Comment 3 for bug 1422879

Revision history for this message
Pete Woods (pete-woods) wrote :

I just put together a branch for unity-scopes-shell that logs when GPS updates from the location service are being enabled and disabled:

lp:~unity-api-team/unity-scopes-shell/log-when-updating-location

Trying this on my device produces the expected behaviour, i.e.:

* When looking at a scope that requires location, it enables location updates.
* When you move away from that scope, location updates stay enabled for a 5 second timeout (in order that the GPS isn't rapidly turned on and off as you browse through scopes).

To be clear, the location "session" remains active all the time, we just toggle the "updates" property. This is the (I believe correct) way tvoß explained to use the location service to me.

Log output:
Enabling location updates
Disabling location updates
Enabling location updates
Disabling location updates
Enabling location updates
Disabling location updates