After upgrading to SDK 29, I am getting an error when I try to request location permissions in my detached app:
Error: No visible activity. Must request location when visible.
I have replicated this in a fresh expo app by:
Note: I got errors in android studio until I added expokit as a dependency in package.json
Once I have the default app up and running, I add componentDidMount in the default App.js and request location permission:
This gives the error:
[11:55:23] [Unhandled promise rejection: Error: No visible activity. Must request location when visible.]
- node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:121:42 in createErrorFromErrorData
- node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:78:57 in
- … 5 more stack frames from framework internals
I am using exp version 55.0.5
Any advice or help with this would be appreciated.