Closed
Description
Hi,
related to #17145
The part if (ABS(_locationManager.desiredAccuracy - RCT_DEFAULT_LOCATION_ACCURACY) > 0.000001) {
on line ~ 360 of RCTLocationObserver.m always resets the location accuracy to the default value.
It should rather check if _observingLocation is true and use _observerOptions.accuracy instead, like this:
if (_observingLocation && ABS(_locationManager.desiredAccuracy - _observerOptions.accuracy) > 0.000001) { _locationManager.desiredAccuracy = _observerOptions.accuracy; } if (!_observingLocation && ABS(_locationManager.desiredAccuracy - RCT_DEFAULT_LOCATION_ACCURACY) > 0.000001) { _locationManager.desiredAccuracy = RCT_DEFAULT_LOCATION_ACCURACY; }
Cheers and thanks for the great work!