Description
I'm testing a screen with access to the camera to get a photo. But I can't deal with the permissions dialog in tests on Android.
I run the tests with await device.launchApp({ permissions: { camera: 'YES' }});. This setting worked for iOS. How can I accept all permissions for Android? Or how can I handle the permissions dialog on Android?
To Reproduce
init.js settings
await device.launchApp({
permissions: { photos: 'YES', camera: 'YES' },
});
emulator settings
{
"configurations": {
"android.emu.debug": {
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
"type": "android.emulator",
"device": {
"avdName": "Nexus_S_API_27"
}
}
}
}
Environment
- Detox: 16.2.1
- React Native: 0.60.4
- Node: 12.16.1
- OS: macOS Mojave 10.14.6
- Device: emulator Nexus S API 27