Skip to content
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

Location fluctuate even putting phone on desk #439

Open
c-info opened this issue May 31, 2024 · 2 comments
Open

Location fluctuate even putting phone on desk #439

c-info opened this issue May 31, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@c-info
Copy link

c-info commented May 31, 2024

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

  • Android: 10
  • iOS: -
  • react-native-geolocation-service: 5.3.1
  • react-native: 0.71.3
  • react: 18.2.0

Expected Results

It should return accurate result only when phone moves from location

@c-info c-info added the bug Something isn't working label May 31, 2024
@dalollio
Copy link

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!

@ganeshtak19
Copy link

+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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants