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

React Native location permission doesn't work in Android 10 but does work in Android 9

$
0
0

Issue : I'm using the react-native-permissions library in my react native app. The code was working perfectly fine in Android devices with OS 9 or below i.e, when prompted to access the device location and if the user grants it the location, the app has access to the device location.

But in Android 10, when the location prompt first appears, and I either select "Allow all the time" or "Allow only while the app is in use", the app is still not able to access the location even though when I check the App info of this app, location shows enabled in the Permissions section. Now when I turn on the system-wide GPS from the notifications manually, then the app is able to fetch the location. I don't understand what I'm missing here.

I'm using a Oneplus 6t. Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 29682

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>