sensors icon indicating copy to clipboard operation
sensors copied to clipboard

Exposing sensors in service workers

Open tobie opened this issue 9 years ago • 3 comments

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.

tobie avatar May 10 '16 08:05 tobie

This is also related to #73

mkruisselbrink avatar May 10 '16 16:05 mkruisselbrink

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").

marcoscaceres avatar Oct 03 '16 06:10 marcoscaceres

Absolutely. You're looking more at geofencing than geolocation.

tobie avatar Oct 03 '16 06:10 tobie