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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera Permission issue with Detox Android #2785

Closed
rajithaswoop opened this issue May 20, 2021 · 3 comments
Closed

Camera Permission issue with Detox Android #2785

rajithaswoop opened this issue May 20, 2021 · 3 comments

Comments

@rajithaswoop
Copy link

rajithaswoop commented May 20, 2021

Permission Issue with Android : I have this issue on Detox 18.13.0, React Native 0.63.4, API 30 for my Android emulator. It works perfectly for camera permission on iOS but on Android, whatever I set NO or YES on permissions, they are always enabled.

If I change theses permissions on the app before launching detox test, all permissions are enabled again.
@noomorph @d4vidi

@noomorph
Copy link
Collaborator

@d4vidi, do we have those camera permissions correctly implemented for Android?

@rajithaswoop
Copy link
Author

rajithaswoop commented May 20, 2021

beforeAll(async () => {
await device.launchApp({newInstance: true, permissions: {camera: ‘NO’}});
await device.launchApp({ permissions : { location: ‘always’ }})
await device.launchApp({ permissions : { notifications: ‘YES’ }})
});
So here camera permissions is not taking NO permission, always camera is shown in YES state when detox test is run
@noomorph @d4vidi

@d4vidi
Copy link
Collaborator

d4vidi commented May 20, 2021

Hey @rajithaswoop, unfortunately, the permissions argument to launchApp() is only applicable on iOS, at the moment. You are welcomed to follow this issue for support on Android, in the future. We also accept contributions 😄

@d4vidi d4vidi closed this as completed May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants