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)
1
2
3
It is also under consideration in @servoDev for its possible usage in the context of #WebVR/#WebXR
Generic Sensor API would make Servo an amazing VR and AR experimentation platform. ”Some of the experiments we’re looking to invest more in during 2018: [...] Experiments with device [APIs]”
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-…

Mar 20, 2018 · 1:52 PM UTC

1