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

The operation couldn’t be completed. The Places API could not find the user's location. This may be because the user has not allowed the application to access location information. #165

Closed
NickLatin0 opened this issue Aug 8, 2018 · 2 comments

Comments

@NickLatin0
Copy link

When calling RNGooglePlaces.getCurrentPlace() getting this error.
react-native 0.56.0
react-native-google-places 2.5.2

deployed on actual iphone 6 device debugging

@nickmccomb
Copy link

nickmccomb commented Aug 8, 2018

You need to ask the user if it's okay to use location first. Here's my Location.js file i use for iOS / Android which asks the user for location (by calling getLocation function), then gets the users current position, calls getCurrentPlace and returns the results to a callback function

https://pastebin.com/2JjerZk4

@tolu360
Copy link
Owner

tolu360 commented Mar 11, 2019

Please update to the latest release, see #198

@tolu360 tolu360 closed this as completed Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants