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: Nicholas Butko [8th Wall] via GitHub <sysbot+gh@w3.org>
Date: Wed, 13 Mar 2019 21:49:40 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-472619743-1552513778-sysbot+gh@w3.org>
Thanks for updating this issue, it's great to see the progress here. I was wondering it it's possible to get some minor points clarified related to the proposed specification PR #68 

Based on the spec, the user interface would look something like:

1. A bespoke dialog to approve motion and orientation permissions to view in AR with an 'Ok, got it' button (explicit action), clicking this button fires two promises that result in two prompts:
2a. Prompt for device motion for origin
2b. Prompt for device orientation for origin
3. Then start.

Is there a mechanism to check if permission is granted prior to (1)? It may be confusing to see 'Permission is required, please allow' followed by no prompts (immediately return 'granted').

Are implementations allowed to merge (2a) and (2b) into a single prompt (2)? If so, adding something to this effect ("Implementations may choose to resolve simultaneous permissions promises with a single user prompt") could help clarify this.

Any clarification on these points would be greatly appreciated.

GitHub Notification of comment by nbutko
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/57#issuecomment-472619743 using your GitHub account
Received on Wednesday, 13 March 2019 21:49:41 UTC

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