Once upon a time, web browsers were used to… well, browse the web, but overtime, features and API have been added to run apps with the ability to control hardware like webcams using the Media Capture API, GPIOs using JavaScript (e.g. node.js), or handle Bluetooth connectivity though the Web Bluetooth API.
The W3C Generic Sensor API is one of the latest proposed API, and defines a framework for exposing sensor data to the Open Web Platform in a consistent way. Google has just announced Chrome 67 beta supports the new API.
You can test the Sensor API on your phone or other device with sensors running Chrome 67 beta or later using samples from Intel, or even customize them by editing the source code. The demo will require you to enable Generic Sensor and Generic Sensor Extra Classes in chrome://flags.
Firefox has a bug listed to implement the Generic Sensor API, but so far nobody has been assigned. However, it’s possible Firefox Reality browser will support it, as it’s been specifically designed for mixed reality applications.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.