sensors
sensors copied to clipboard
Exposing sensors in service workers
Sensors must be exposed in services workers.
Actions:
- [ ] List use cases for sensor in a
ServiceWorker. - [ ] Figure out the permissioning story.
- [ ] Figure out a generic way to have sensors operate in the background.
- [ ] Assess whether this should be part of the Generic Sensor API or a completely different spec.
This is also related to #73
I don't know if you can expose the sensors in SW unless it's only for 1 shot (or very periodic). You can't spin up a SW and keep the SW alive reading data (AFAIU, that defeats the purpose of a SW unless you are trickling data slowly based on thresholds - like "only when the temperature goes above 37c, notify the SW").
Absolutely. You're looking more at geofencing than geolocation.