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.