react-native-geolocation icon indicating copy to clipboard operation
react-native-geolocation copied to clipboard

iOS: Handle network error

Open latusdenis opened this issue 5 years ago • 0 comments

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 }
    );

latusdenis avatar Sep 13 '19 17:09 latusdenis