-
Notifications
You must be signed in to change notification settings - Fork 238
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
ANDROID Geolocation not working for ACCESS_COARSE_LOCATION #205
Comments
Thank you for reporting, I'll look onto it soon. |
I am also facing this issue. Is there a way to get only approximate location by just requesting ACCESS_COARSE_LOCATION permission? Right now this package always requests for ACCESS_FINE_LOCATION permission. |
@kamal-j I have switched to using react-native-geolocation-service since its a time sensitive issue. So far its working. Fingers crossed. |
@kamal-j @sabinayakc I sent a PR to address this issue, would it be possible to check if it solves it on your end? |
@kamal-j if you could try it and let us know that would be great. unfortunately, i already deployed my code changes with the other package. |
Fixed in 3.0.3 release |
I have the same problem, RN 0.71.15 , RNG 3.1.0, someone knows about this problem! My Android 10 with SDK Engenico? {"ACTIVITY_NULL": 4, "PERMISSION_DENIED": 1, "POSITION_UNAVAILABLE": 2, "TIMEOUT": 3, "code": 3, "message": "Location request timed out"} |
Environment
System:
OS: macOS 12.6
CPU: (10) arm64 Apple M1 Pro
Memory: 83.22 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.10.0 - /opt/homebrew/bin/node
Yarn: Not Found
npm: 8.19.2 - /opt/homebrew/bin/npm
Watchman: 2022.10.03.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/***/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found //Local.properties
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7935034
Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild
Languages:
Java: 11.0.16.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.2 => 0.70.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Platforms
ANDROID
Versions
Description
Geolocation returning
{"PERMISSION_DENIED": 1, "POSITION_UNAVAILABLE": 2, "TIMEOUT": 3, "code": 1, "message": "Location permission was not granted."}
when using ACCESS_COARSE_LOCATION.Works fine with ACCESS_FINE_LOCATION. But if the user changes from precise to approximate it throws the above error.
Reproducible Demo
Pardon my lengthy code here, haven't refactored it.
--ANDROID MANIFEST
-- Checking Permission
The text was updated successfully, but these errors were encountered: