Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Android's getCameraPermissionStatus and getLocationPermissionStatus always returned 'denied' on a fresh install of the app #2946

Open
3 of 5 tasks
tomtargosz opened this issue Jun 6, 2024 · 1 comment
Labels
馃悰 bug Something isn't working

Comments

@tomtargosz
Copy link

What's happening?

On Android, when an app is freshly installed getCameraPermissionStatus and getLocationPermissionStatus always returned 'denied' when they should be returning 'not-determined'. If after installing the app you go into the settings for the app and turn camera or location permissions on and then off, and then open the app the methods will return 'not-determined' as expected. This is not happening on iOS. I noticed this issue that mentions the same thing but I don't believe the docs were updated.

Reproduceable Code

console.log(Camera.getCameraPermissionStatus())
console.log(Camera.getLocationPermissionStatus())

Relevant log output

-

Camera Device

-

Device

Pixel 7 (Android 14)

VisionCamera Version

4.1.0

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

@tomtargosz tomtargosz added the 馃悰 bug Something isn't working label Jun 6, 2024
@giuliobracci
Copy link

giuliobracci commented Jun 7, 2024

Hi @tomtargosz I'll suggest you to take a look at react-native-permissions. They have a great README explaining the permissions flow for Android. @mrousavy I can update the docs for Android you're cool with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants