-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getCurrentPosition slow if Precise Location is set to Off on iOS 14 #214
Comments
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:
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, |
v5.2.0 has been published with location delay fix. |
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.
The text was updated successfully, but these errors were encountered: