-
Notifications
You must be signed in to change notification settings - Fork 50
Allow for async permission request when first accessing sensor data #20
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
Milestone
Comments
The "value is let geo = new Sensor.Geolocation(); // <-- this will trigger some kind of permission request to the user
geo.lat; // null until user grants permission, which might be never
geo.on("change", function() {
// will only ever be invoked if the user grants permission, which might be never.
}); |
Yup. Might need to emit a |
I'm watching this repo, but please ping me and I'll try to help in any way I can. |
@marcoscaceres creating a dedicated issue for discussing the Permission API: #22. |
Depends on ongoing work on the Permission API: w3c/permissions#66 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure the API is compatible with sensors which need to ask the user's permission before being used.
Proposed resolutions:
Actions:
The text was updated successfully, but these errors were encountered: