diff --git a/Libraries/Geolocation/RCTLocationObserver.m b/Libraries/Geolocation/RCTLocationObserver.m index 904538d8a6..09cec2b3ff 100644 --- a/Libraries/Geolocation/RCTLocationObserver.m +++ b/Libraries/Geolocation/RCTLocationObserver.m @@ -353,11 +353,6 @@ RCT_EXPORT_METHOD(getCurrentPosition:(RCTLocationOptions)options [_locationManager stopUpdatingLocation]; } - // Reset location accuracy if desiredAccuracy is changed. - // Otherwise update accuracy will force triggering didUpdateLocations, watchPosition would keeping receiving location updates, even there's no location changes. - if (ABS(_locationManager.desiredAccuracy - RCT_DEFAULT_LOCATION_ACCURACY) > 0.000001) { - _locationManager.desiredAccuracy = RCT_DEFAULT_LOCATION_ACCURACY; - } } - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error @@ -389,11 +384,6 @@ RCT_EXPORT_METHOD(getCurrentPosition:(RCTLocationOptions)options } [_pendingRequests removeAllObjects]; - // Reset location accuracy if desiredAccuracy is changed. - // Otherwise update accuracy will force triggering didUpdateLocations, watchPosition would keeping receiving location updates, even there's no location changes. - if (ABS(_locationManager.desiredAccuracy - RCT_DEFAULT_LOCATION_ACCURACY) > 0.000001) { - _locationManager.desiredAccuracy = RCT_DEFAULT_LOCATION_ACCURACY; - } } static void checkLocationConfig()