React-native-geolocation-service: Not getting exact latitude longitude on ios device using watchPosition.

Created on 28 Feb 2019  路  5Comments  路  Source: Agontuk/react-native-geolocation-service

Issue Description::

I am working on react native tracking application. Basically users check in from a certain place and they need to reach at the destination. Using this application we are finding out the path they are following. I need to get a geocodes from users check in location to destination to track the path he is following.
Now it builds a clean path in case of Android device, but having an issue with ios. For ios it takes a huge variation inside code.
I have tested this by traveling to same place using both devices(ios and android). For Android it's generates a exact latitude longitude values, but for ios there is a huge variation. Why this is happening. I have followed the official doc of react native for geolocation setup.
You can check this link:: https://facebook.github.io/react-native/docs/geolocation.html#ios

This is happening when I have updated react native version to 0.58

Environment I am using ::
React Native: 0.58
react-native-geolocation-service: 2.0.0

Most helpful comment

This was a bug with React Native iOS Geolocation Library. It is fixed in react-native 0.59: https://github.com/facebook/react-native/commit/bbcb97a29adc2a3a05728b47d28e28fa78d84df2

All 5 comments

This library is using the default react native location module for iOS. So if you're having a problem, that means it's an issue with RN module. So it'll be better if your open a issue in RN repo.

Now I have made changes in react-native/Libraries/Geolocation/RCTLocationObserver.m. You can check this link:: Link
After making these changes, it works fine on ios. Is this an accurate method or not??

Can't tell, but looks like it should have been configurable from user end.

This was a bug with React Native iOS Geolocation Library. It is fixed in react-native 0.59: https://github.com/facebook/react-native/commit/bbcb97a29adc2a3a05728b47d28e28fa78d84df2

Closing this since it's been fixed in 0.59.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ankur-MoneyKey picture Ankur-MoneyKey  路  11Comments

alexandersandberg picture alexandersandberg  路  7Comments

lyseiha picture lyseiha  路  6Comments

blumendorf picture blumendorf  路  11Comments

rodrigofbm picture rodrigofbm  路  9Comments