Skip to content

requestPermissions should be blocking #125

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

Closed
zzador opened this issue Sep 6, 2018 · 1 comment
Closed

requestPermissions should be blocking #125

zzador opened this issue Sep 6, 2018 · 1 comment

Comments

@zzador
Copy link

zzador commented Sep 6, 2018

I'm calling "requestPermissions()" right away before I take a picture. However when I take the first picture after I started the developement session, android presents me 2 confirm-dialogs (camera permissions) while in the background my app is already presenting me an error message that I have not the permissions to use the camera. Only at the second try, when the permissions are already given the photo can be captured.

lini added a commit that referenced this issue Nov 16, 2018
@lini
Copy link
Contributor

lini commented Nov 16, 2018

The requestPermissions() method returns a promise. You must wait for the promise to resolve before trying to take a picture. We will update the documentation to better explain this.

@lini lini closed this as completed Nov 16, 2018
@ghost ghost removed the feature label Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants