- From: Reilly Grant via GitHub <sysbot+gh@w3.org>
- Date: Thu, 13 Dec 2018 20:59:06 +0000
- To: public-device-apis-log@w3.org
That is correct, I forgot that the `navigator.permissions.request()` method has been removed in favor of each specification integrating its own method for requesting more permission, but calling into the algorithm you mention. A cursory look at `query()` made me think that that had been integrated into it instead. Given that the Generic Sensors specifications I linked to above should be updated to include a `requestPermission()` method similar to [Notification.requestPermission()](https://notifications.spec.whatwg.org/#dom-notification-requestpermission). As the DeviceOrientation API does not provide an object in the global scope like AbsoluteOrientationSensor or Notification (except perhaps DeviceOrientationEvent) what do you think about not adding a method specific to this API but instead relying on the ones that need to be added to the newer specifications? My recollection is that WebKit does not implement the `deviceorientationabsolute` event and so implementing a single `RelativeOrientationSensor.requestPermission()` method would suffice for your purposes. -- GitHub Notification of comment by reillyeon Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/57#issuecomment-447118574 using your GitHub account
Received on Thursday, 13 December 2018 20:59:07 UTC