The Generic Sensor and its 5 associated concrete sensor (accerometer, magnetometer, gyroscope, orientation, ambient light) APIs have reached Candidate Recommendation status #timetoimplement
The APIs enable Web apps to integrate more closely with the surrounding environment.
This tweet is unavailable
2
6
3
13
As we mentioned a couple of months ago, these APIs come with a stronger privacy-by-design approach (compared to e.g. DeviceOrientation) and bring a cleaner model for managing sensors (e.g. multiple ones, high performance)
The Generic Sensor API is a framework API to bring sensors to Web browsers w3.org/TR/generic-sensor/ - it tries to improve the disparate efforts and lessons learnt from them for previous sensors (geolocation, orientation and movement)
Mar 20, 2018 · 1:52 PM UTC
1
2
3
You can find the API implemented as an origin trial in @GoogleChromeDev chromestatus.com/features/56…
1
1
If you would like to see the API more widely implemented, bring your use cases to the relevant places:
- @firefoxdev bugzilla.mozilla.org/show_bu…
- @MSEdgeDev wpdev.uservoice.com/forums/2… (entry to be created)
- @webkit bugs.webkit.org/ (bug to be filed)
1
1
and if you would like to help with the spec, the Generic Sensor spec is developed in github.com/w3c/sensors and you can find the repos for the concrete sensors from w3.org/2009/dap/#roadmap
You can also help with the test suites at e.g. github.com/w3c/web-platform-…
1
