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
Geolocations say: Unable to retrieve location PERMISSION DENIED #750
Comments
https://facebook.github.io/react-native/docs/geolocation.html#content - "/!\ ATTENTION /!\ You need to add NSLocationWhenInUseUsageDescription key in Info.plist to enable geolocation, otherwise it's going to fail silently! !/ !/" - did you do this? |
We should probably have the native module check whenever |
@frantic - on it, PR coming! |
@iDVB - confirmed that with custom location set and |
@iDVB - that happened to me and then I went into Debug > Location and chose Apple, pressed CMD+r to reload and it worked. Then switching to a custom location worked too, after that. Let me know if that helps! |
WORKS! Kinda fiddly setup though. Not even sure what fixed it as I did, multiple refreshes, restarts of the Simulator and swapping the location from custom to Apple and back. |
…f not Summary: As per facebook#750, throw error when trying to use the geolocation module and this key is not set. cc @frantic Closes facebook#762 Github Author: Brent Vatne <brent.vatne@madriska.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
…f not Summary: As per facebook#750, throw error when trying to use the geolocation module and this key is not set. cc @frantic Closes facebook#762 Github Author: Brent Vatne <brent.vatne@madriska.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
…f not Summary: As per facebook#750, throw error when trying to use the geolocation module and this key is not set. cc @frantic Closes facebook#762 Github Author: Brent Vatne <brent.vatne@madriska.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
I also keep getting "permission denied" even with I have uninstalled the app in the simulator and selected "allow" when asked if it can access my location while I use the app. The location is set to "Apple". I toggled that to different locations also. |
…f not Summary: As per #750, throw error when trying to use the geolocation module and this key is not set. cc @frantic Closes facebook/react-native#762 Github Author: Brent Vatne <brent.vatne@madriska.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
Restarting the simulator helped me fix this issue |
navigator.geolocation.watchPosition through permission denied in Android OS>5 |
Problem still occur for me. |
The info.plist need NSLocationAlwaysAndWhenInUseUsageDescription & NSLocationAlwaysUsageDescription aswell |
Isn't this correct?
|
react-native@0.3.1
navigator.geolocation does not seem to work. I've ensured I am selecting ALLOW in the simulator, and I've set the custom cords to be Lat: 55.02 Lng: -1.42 but still getting the error PERMISSION DENIED
It also appears that all my linkages are correct:
The text was updated successfully, but these errors were encountered: