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.6k stars 290 forks source link

if i use forceLocationManager props with "enableHighAccuracy: true", its not working in 5.3.1, same code working on 5.0.0 #402

Open BharathiFH opened 1 year ago

BharathiFH commented 1 year ago

Environment

Run npx react-native info in your terminal and copy the results here. System: OS: macOS 13.0.1 CPU: (8) arm64 Apple M1 Memory: 86.03 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 19.3.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 9.2.0 - /opt/homebrew/bin/npm Watchman: Not Found Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8815526 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.16.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.2 => 0.71.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Platforms

Is this issue related to Android, iOS, or both ? Both

Versions

Please add the used versions/branches

Description

Please provide a clear and concise description of what the bug is. Include screenshots if needed. error message: {"code": 3, "message": "Location request timed out."}

options: {
enableHighAccuracy: true, showLocationDialog: false, forceLocationManager: true, timeout: 20000, maximumAge: 0 }

Reproducible Demo

Provide a detailed list of steps that reproduce the issue.

1. 2.

Expected Results

Describe what you expected to happen.

Shudhanshu-Appnox commented 1 year ago

Facing the same issue .. When enableHighAccuracy is true getting the same error log.

BharathiFH commented 1 year ago

Facing the same issue .. When enableHighAccuracy is true getting the same error log.

For temporary fix,downgrade your package as 5.0.0.

ramirobg94 commented 8 months ago

same error here and bad accuracy