Expose the GravitySensor API, which provides a 3-axis reading of the gravity force, to users.
TAG review status
Interoperability and Compatibility
Generic Sensor APIs, as well as other hardware-related APIs, can be controversial when it comes to interoperability because other browser engine developers have voiced privacy-related concerns.
: Negative Mozilla has not been asked about this specific API, but have raised concerns about the Generic Sensor APIs, including Accelerometer.
: Negative (https://webkit.org/tracking-prevention/)
Although Apple has not been specifically asked about this API, they are not part of the Devices & Sensors WG, and have generally been contrary to the Generic Sensor APIs.
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes, except for Mac. The readings are obtained directly from the platform on Android when possible, and implemented as a fusion sensor on top of the Accelerometer implementation otherwise (and in other OSes except for macOS). There is support for gravity sensors
in the Linux kernel as well, but we need to write some extra logic to handle falling back to a fusion sensor if they are not present". Per https://groups.google.com/a/chromium.org/g/blink-dev/c/_IReUkNKF6o/m/Ed0eFyP5CAAJ,
only older Mac laptops seem to ship with accelerometers. We currently only ship the Accelerometer interface on Macs, but not LinearAccelerometer, in order to support the older Device Orientation/Motion APIs. As such, there does not seem to make much sense
to ship this API on Macs either.
Link to entry on the Chrome Platform Status
Link to previous Intent discussions
This intent message was generated by Chrome