-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API for requesting permission #388
Comments
FWIW, on the Chrome side, Implement I am in favor to try to push the generic approach, especially because I do find it worthwhile to explore the "multiple permissions at once" case given general permission fatigue. |
Related: Permissions API issue w3c/permissions#191 discusses bundling of permissions as a generic mechanism. Since this discussion rightly is split across multiple repos, a clarification: This issue #388 is to explore what is the preferred mechanism (if any) to programmatically request permission for concrete sensors that subclass |
@anssiko it might help if we compose a list of sensors that may need/want a permission API? |
@rwaldron, the list of sensors some implementers may want to gate behind a permission is basically all the concrete sensors that subclass Currently "legacy" @rakuco @reillyeon can probably comment on Chrome's permission-related plans for the APIs that subclass |
My proposal is to remove the permissions-related side effects from To @rwaldron's question, all sensor types will have a |
@reillyeon wrote:
All - please let us know if you have any concerns with this proposal. Hearing none, I'd like us to start baking a PR to specify this in detail. |
Discussed at TPAC 2019 F2F. Closing this issue without adding a static |
Generic Sensor API was defined with an expectation the generic
navigator.permissions.request()
would materialize at some point, but sincerequest()
seem not be gaining support among implementers we should look at other options. Currently, two approaches to programmatically request permission have been coined and one of them tried on the web platform:navigator.permissions.request()
navigator.permissions.query()
Foobar.requestPermission()
Opened this issue to gauge interest to revisit concrete
requestPermission()
again given it has been getting some traction recently (see Device Orientation). If there's support for this idea, we could add informative guidance to Extensibility for concrete spec authors that subclassSensor
to utilize.The text was updated successfully, but these errors were encountered: