I was trying to reduce Android permissions to minimum. I used to have The ACCESS_COARSE_LOCATION and also ACCESS_FINE_LOCATION. However I never used fine location. So I removed it. I did a build and installed locally and it worked fine, but after releasing to store it's not working. These are the only location calls I do. Anyone have any ideas why its not working with just coarse permission?
I am using Expo SDK Version 40.0.0 for React Native so here is my javascript (the java code it calls is below).
import * as Location from 'expo-location';
function getLocation() {
try {
return await Location.getLastKnownPositionAsync();
} catch (error) {
return await Location.getCurrentPositionAsync({
accuracy: Location.LocationAccuracy.Lowest
});
}
}
This is javascript that calls these java methods:
And: