Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.61k stars 291 forks source link

Geolocation.getCurrentPosition not fetch exact location data on iOS 16.1.1 #401

Open pandya293 opened 1 year ago

pandya293 commented 1 year ago

Hi All,

Issue in iOS 16.1., on Android device its working perfect.

in Geolocation.getCurrentPosition method, I have tried many options but still I am not get exact location.

Here are my option sending in Geolocation.getCurrentPosition method Issue I need user exact location data, like 5-10 mtr distance is ok, but getCurrentPosition gives me user's location which is more that 200-300 mtr from user's actual device location.

Options params

{
          accuracy: {
            android: "high", // Work perfect for android device
            ios: "bestForNavigation"    // tried both value "best" and "bestForNavigation", but not any effect.
          },
          distanceFilter: 0,
          maximumAge: 0,
          timeout: 25000, //Request time-out for
          enableHighAccuracy: true,  //tried false and true both, but not any effect.
          showsBackgroundLocationIndicator: true,
}

My Project details

"react-native": "0.66.4",
"react-native-geolocation-service": "^5.3.0",

Please help to send proper option param, which gives me user's exact location data. Thanks,

pandya293 commented 1 year ago

on iPhone ios 16.1.1 device fetching more than 500 mtr, which is not correct. please help me to fix this issue as soon as possible. My project client is frustrated!!!

pandya293 commented 1 year ago

Hi all, May i know what is wrong in code. I am getting user's location 80-100 mtr away from user's current location. Not getting perfact location.

MuhammadKasymov commented 1 year ago

have same problem, any solutions?

janandaraj commented 1 year ago

+1

000xuandu commented 1 year ago

I am facing this issue on iOS 16.5 also