-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Geolocation API automatically reverts to 100m accuracy on iOS #7680
Comments
The code you are linking to is inside |
In my tests this was happening quite frequently therefore ruining the functionality. IMHO the code should still revert to the previously set |
In addition the same code can be found in https://github.com/facebook/react-native/blob/master/Libraries/Geolocation/RCTLocationObserver.m#L269
|
@rburgst Did you find a solution? We still struggle with that problem. As the constant is defined as makro, we even can't really subclass or categorize the RCTLocationObserver. |
I did modify the react native code. As I have it checked in I always put it
back when upgrading.
On 01.06.2017 at 14:40, Leo Käßner <[email protected]> wrote:
@rburgst <https://github.com/rburgst> Did you find a solution? We still
struggle with that problem. As the constant is defined as makro, we even
can't really subclass or categorize the RCTLocationObserver.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7680 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABZuy0mhOjca7YzGThqOS2bpNoPcQ1mks5r_rE6gaJpZM4IkEMH>
.
|
Reviewed By: @nicklockwood Differential Revision: D2519624 fb-gh-sync-id: 7366c5ac9e06082448b9fbba3c616aaf8e4183f9
The current implementation of the geolocation API always reverts back to an accuracy of 100m after receiving the first location update.
https://facebook.github.io/react-native/docs/geolocation.html
latest 0.26.1
only on iOS
Mac
The issue seems to stem from this code
react-native/Libraries/Geolocation/RCTLocationObserver.m
Line 337 in 2310494
Where
RCT_DEFAULT_LOCATION_ACCURACY
is 100m.The rationale for this code is somewhat unclear to me. The comment does not seem to fit to the implementation.
The text was updated successfully, but these errors were encountered: