Google released yesterday the new version of its browser: Chrome 67. This version is noted by the arrival of two new APIs: Generic Sensor and WebXR.
Generic Sensor will allow web applications to access the data provided by the sensors of a device. The API consists of a generic interface, on which various classes are built to communicate with concrete sensors. For example :
accelerometer
Gyroscope
Orientation sensor
Motion sensor
The Generic Sensor API is documented here. In addition, Intel offers a website dedicated to API demonstrations with sample code available on GitHub.
The WebXR Device API makes it possible to create virtual and augmented reality experiences on mobile devices and desktops - unifying experiences, as Google puts it, on AR-enabled mobile devices, reality headsets virtual like Google Daydream View and Samsung Gear VR, as well as desktop headsets like Oculus. Rift, HTC Vive and Windows mixed reality headsets.
The documentation for this API and sample code is available on the GitHub Immersive Web Community Group repository.