[sensors] Generic Sensor & Wake Lock API use cases

pozdnyakov has just created a new issue for https://github.com/w3c/sensors:

== Generic Sensor & Wake Lock API use cases ==
For the privacy and security reasons sensor readings are only delivered to the currently visible tabs, which means that sensor notification suspends when screen turns off. This could break certain potential use cases, for example:

 - a Web application collecting sensor data while the user is doing sport exercises over a long period of time without interacting with device all the time.

Use of Sensor APIs and Wake Lock API together could enable such use case.

In order to make it more battery friendly the screen could be dimmed, so that more power is saved on the device. Maybe a new [wake lock type](https://w3c.github.io/wake-lock/#dom-wakelocktype)?

Another (maybe more apparent) way is to expose sensor APIs from workers (pls see [version 2 features](https://github.com/w3c/sensors/projects/5) ), but it brings hard-to-solve security and privacy issues.


Please view or discuss this issue at https://github.com/w3c/sensors/issues/323 using your GitHub account

Received on Monday, 23 October 2017 14:20:50 UTC