[wake-lock] Add "geolocation" wake lock (#170)

kenchris has just created a new issue for https://github.com/w3c/wake-lock:

== Add "geolocation" wake lock ==
@tomayac is interested in this for the GeolocationSensor.

https://docs.microsoft.com/en-us/windows/uwp/launch-resume/run-minimized-with-extended-execution

Windows also has special API for geolocation as there can

* Only be one lock at a given time
* Regular CPU "system" lock has a time limit when the device is running on battery

We could also spec that the lock would be rejected if the same global scope doesn't have an active GeolocationSensor - I think that makes sense.

This might require some spec changes in the GeolocationSensor spec as well.

Up for speccing this @tomayac ?


Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/170 using your GitHub account

Received on Monday, 1 April 2019 12:21:25 UTC