New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native-location warning:403 #136
Comments
Android API >= 23 Requires an additional step to check for, and request the ACCESS_FINE_LOCATION permission using the PermissionsAndroid API. Failure to do so may result in a hard crash. You can use something like this before trying to get geolocation:
|
I am also getting the same error above solution did not help. RNLocation.configure({
distanceFilter: 0, // Meters
desiredAccuracy: {
ios: 'best',
android: 'highAccuracy',
},
interval: 1000,
maxWaitTime: 1000,
});
RNLocation.requestPermission({
ios: 'whenInUse',
android: {
detail: 'fine',
rationale: {
title: 'Location permission',
message: 'We use your location to demo the library',
buttonPositive: 'OK',
buttonNegative: 'Cancel',
},
},
}) This is only happening when desiredAccuracy is highAccuracy. |
I solved the issue in android. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> Then in android/app/build.gradle add these lines in dependencies
Just follow the installation instructions correctly and it will work. |
I already have all of them and still shows the warning |
any updates ?! |
react-native:0.58.4
react-native-location warning:
type:403
Attempted to start updating the location without location permissions. Detail: "gps" location provider requires ACCESS_FINE_LOCATION permission.
thanks!!
The text was updated successfully, but these errors were encountered: