Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

React Native Detox: Can't accept location permission from system alert pop up

$
0
0

Launch app from command line usingdetox test --configuration ios.sim.debug

Launch app in code via await device.launchApp({ permissions: { location: 'always', notifications: 'YES' } })

Go through login flow until app asks for location via react-native-permissions Permissions.request('location', { type: 'always' })(with prior check to see if location permission check already set to'always' (in which case app doesn't ask) )

See system alert pop up asking to confirm location permission

Detox cannot see system alert pop up and thus can't click on button to choose permission always for location

Should be able to tap on 'Always Allow' button in location permission system button. But can't.

See my code at: github.com/wix/Detox/issues/1330 .


Viewing all articles
Browse latest Browse all 16552

Trending Articles