You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not a library bug, but rather the expected behavior of the GPS system.
To provide a location with the best accuracy, some factors are decisive, such as: GPS chip installed on your device, visualization of the GPS constellation, atmosphere, buildings, Wi-FI and telephone signal, interference, noise...
It is normal for these coordinates to fluctuate a few decimal places, as well as the precision.
To prove this, just open Google Maps and observe the variation, using the best provider you could have on Android.
And in addition the globe is spinning, trust me!
+1
I am also facing this fluctuate issue on Android device, and i checked that the same gps do not fluctuate in google maps.
In some cases i got the coordinate too far(50m) from device location without moving. For this i am using
Geolocation.watchPosition with these propeties.
{
accuracy: {
android: "high",
ios: "bestForNavigation",
},
enableHighAccuracy: true,
distanceFilter: 15, // meters
interval: 7000,
fastestInterval: 4000,
forceRequestLocation: true,
forceLocationManager: true,
showLocationDialog: true,
showsBackgroundLocationIndicator: true, //IOS-only
}
Environment
System:
OS: macOS 14.1.1
CPU: (8) arm64 Apple M2
Memory: 113.34 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.14.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
Android SDK:
API Levels: 23, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 33.0.0, 33.0.1, 34.0.0
System Images: android-33 | Google Play ARM 64 v8a, android-TiramisuPrivacySandbox | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11330709
Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild
Languages:
Java: 17.0.9 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.3 => 0.71.3
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Platforms
Tested on Android
Versions
Please add the used versions/branches
Expected Results
It should return accurate result only when phone moves from location
The text was updated successfully, but these errors were encountered: