react-native-geolocation
react-native-geolocation copied to clipboard
iOS: Handle network error
Does the library handle network error, while finding the location?
I am switching off the Internet, while searching the geolocation and the error callback isn't invoked only on iOS.
My config:
GeolocationService.getCurrentPosition(
(geoPosition: GeoPosition) => {
console.log(geoPosition);
},
error => {
setIsLoading(false);
},
{ enableHighAccuracy: true, timeout: 1000, maximumAge: 10000 }
);