- From: Rick Waldron via GitHub <sysbot+gh@w3.org>
- Date: Wed, 27 May 2015 17:03:17 +0000
- To: public-device-apis@w3.org
The "value is `null` until first reading is delivered" should work
really well with user permission prompting.
```js
let geo = new Sensor.Geolocation(); // <-- this will trigger some kind
of permission request to the user
geo.lat; // null until user grants permission, which might be never
geo.on("change", function() {
// will only ever be invoked if the user grants permission, which
might be never.
});
```
--
GitHub Notif of comment by rwaldron
See https://github.com/w3c/sensors/issues/20#issuecomment-105996669
Received on Wednesday, 27 May 2015 17:03:18 UTC