W3C home > Mailing lists > Public > public-device-apis-log@w3.org > March 2019

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

From: Chris Dumez via GitHub <sysbot+gh@w3.org>
Date: Wed, 13 Mar 2019 22:07:56 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-472625096-1552514875-sysbot+gh@w3.org>
@nbutko This is a good point. My proposal would be:
1. The page calls requestPermission() without user gesture.
2.a. If it is rejected, then you do not have permission and you need to request again with a user gesture
2.b. If it gets resolved with 'granted', then you already have permission
3.b. If it gets resolved with 'denied', then the user has already denied access in the past.

If this is acceptable, I would need to clarify the spec text and update the WebKit implementation accordingly.

GitHub Notification of comment by cdumez
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/57#issuecomment-472625096 using your GitHub account
Received on Wednesday, 13 March 2019 22:07:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:27 UTC