In my application I ask for location permission after logging into the application. In my detox tests I set the permissions when launch the application like so:
The expected result is that since I have already granted permissions, I would not need to grant them again within the application, thus I should not see this additional popup.
Hey @runandrew – thanks for letting us know. Is this happening in the Expo client app, or are you seeing this popup in a standalone app?
I’d be interested to know if you are able to reproduce this without detox. I’m not familiar with the inner workings of detox, but I would expect only expect this to happen if the id field in app.json changes between runs of the app. It’s possible that detox does this behind the scenes, but I’m not sure.
Hi @runandrew - sorry, I think I might have misunderstood before. Is your detox testing app a different experience (e.g. has a different app.json and a different value for slug) than your actual app? If so, this is actually expected behavior – on the Expo client you must grant permission explicitly for each separate experience (determined by your username and the app’s slug).
If you are continually seeing this popup each time you run the detox testing experience (rather than just the first time you run it), my suspicion is that detox is modifying the “slug” value behind the scenes.