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: Chris Dumez via GitHub <sysbot+gh@w3.org>
Date: Thu, 13 Dec 2018 20:22:09 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-447107876-1544732525-sysbot+gh@w3.org>
@reillyeon I may be missing something but where is that API that JS actually calls to request permission for something? `navigator.permissions.query()` seems to only query, not request.

There is a section in the Permissions API spec about "requesting more permission" but it seems to merely be an algorithm, no actual API for it.

What we want in WebKit is really an API to ask for permission to access device orientation. Without such permission request, the content would not be getting the events at all.

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

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