react-native-geolocation
react-native-geolocation copied to clipboard
Permissions issues
Describe the Feature
Is it possible to get some improvements to the permission handling? Right now, it's nearly impossible to control how permissions are prompted.
For instance, Android will ALWAYS request permission when you request location info. This is not ideal, since it would be good to control on the app to stop those prompts. Why not implement skipPermissionRequests
for Android too?
On the other hand, you can permissions manually on iOS with Geolocation.requestAuthorization
, but there's no way to know if it was succesfull or not.
Proposal:
Implement skipPermissionRequests
for both iOS and Android.
Implement Geolocation.requestAuthorization
for Android as well, so permission handling can be unified.
Implement a new method Geolocation.getAuthorization
that returns the current authorization status.