If Precise Location is set to Off in settings, getCurrentPosition() takes from my testing ~10 seconds to resolve the location.
Happens irregardless of what enableHighAccuracy is set to.
Tested on both simulator and physical device with the same results. Using the master branch.
iOS 14 has added some new functionalities in location. Probably need to expose precise location related options/method from this library. I'll take a look as soon as I can.
Thank you Agontuk for creating this package. It has helped me alot as I was using the old geolocation package. Is there any update on this issue as I am also running into it
@alexandersandberg where exactly is the Precise Location setting you mention? Inside the app's settings or general phone settings?
@JeffAbney This is a new iOS 14 Location Services option for each app, found in device settings.
In the Settings app, you can find it by going to one of the following:

The cause of this issue is the following in RNFusedLocation.swift:
let locManager = CLLocationManager()
locManager.delegate = self
locManager.desiredAccuracy = getAccuracy(options)
locManager.distanceFilter = distanceFilter
locManager.startUpdatingLocation() //<<<<<<<<<<<<< requestLocation()
If you change requestLocation() to startUpdatingLocation(), IOS location services will start returning location values immediately rather than after 10 seconds. I don't know the code well enough to tell you if this will impact subscriptions,
but if you just want one-off location reads this will fix the issue.
Am I correct that this one is fixed after https://github.com/Agontuk/react-native-geolocation-service/commit/4a9b6ce5eb2101333d0a69e9b344060419b99af2 is released? If so, @Agontuk any plans for a new release? :-)
v5.2.0 has been published with location delay fix.
Most helpful comment
v5.2.0 has been published with location delay fix.