I’m trying to use a custom dev client to try out react-native-mapbox-gl. I have added the @react-native-mapbox-gl/maps plugin to my app.json and also the necessary android permissions ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION.
But still when I’m trying to display the map I get the following error
locationManager Error: [Error: uid 10154 does not have android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION.]
This is pretty weird because I’m adding these permission inside my app.json but they don’t get applied.
I’m running expo run:android to run the app locally on an emulator.
I have created a Repo with my current environment that throws this permission error. It also includes a test token from mapbox so you don’t have to create an account yourself.
The permissions error only occurs when I add <MapboxGL.UserLocation />. So I’m able to display the map but when needing the user location for the marker, I get the already stated permissions error