W3C home > Mailing lists > Public > public-device-apis-log@w3.org > December 2018

Re: [deviceorientation] Add API for requesting permission to receive device motion / orientation events (#57)

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Thu, 13 Dec 2018 19:17:17 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-447086980-1544728636-sysbot+gh@w3.org>
This specification is superseded by the [Generic Sensors](https://w3c.github.io/sensors/) family of specifications, which include integration with the [Permissions API](https://w3c.github.io/permissions/). I think that this specification should be updated with a similar integration by requiring `"accelerometer"` and `"gyroscope"` permissions for `deviceorientation` and `devicemotion` events and additionally `"magnetometer"` permission for `deviceorientationabsolute` events. This would match the existing [Orientation Sensor](https://w3c.github.io/orientation-sensor/), [Accelerometer](https://w3c.github.io/accelerometer/), [Gyroscope](https://w3c.github.io/gyroscope/) and [Magnetometer](https://w3c.github.io/magnetometer/) specifications which provide access to the same or similar data.

Is there any plan to implement `navigator.permissions.query()` in WebKit?

Blink is currently considering similar changes to start notifying users or prompting when sites request access to device sensors. The plumbing is already implemented to manage these permissions however they are still granted by default.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/57#issuecomment-447086980 using your GitHub account
Received on Thursday, 13 December 2018 19:17:19 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:56 UTC