react-native-google-places
react-native-google-places copied to clipboard
Android - This IP, site or mobile application is not authorized to use this API key. Request received from IP address **** with empty referer
Hi,
I'm getting this error on Android using a restricted key.
- Added Certificate Fingerprints for both debug & production
- Api key in both prod & debug AndroidManifest.xml files
- Api key is in gradle.properties file with RNGP_ANDROID_API_KEY key
also, using an unrestricted key works fine for the Android app, and using a restricted key for the iOS app also works fine.
what am I missing?
This is happening for us too, but only for a few devices and only in production mode. Did you find any solution for this?
@subramanyaRB nothing yet
Same problem for me here in dev environment. @idanhaviv did you put API KEY in AndroidManifest file? The README don't say nothing about it
Same problem here
any updates?
I'm starting to get this as well, everything works pretty well when I built out the APK and test with my own Android phone but when publishing to store it stops working for others
facing same issue.. please suggest solution
Have you tried some solutions proposed here: https://developers.google.com/maps/faq#api-key-error
A bit late but still might be useful for somebody.
Same problem on dev environment. Using an unrestricted key works fine for the Android app. Any solution?
The reason this error is occurring because of the restrictions you have added when you create add the sha1 fingerprint on google cloud console , remove the fingerprints from android or ios then save .(the ip of that mobile phone will not be restricted)
Has anyone found any solution for this, this is happening on stage env on my device
This issue is till open, 3 years after, I am still encountering the same issue, followed all steps given in the expo documentation to app the SHA-1 fingerprint to my google console, and also configure the app.json accordingly, but issue still persists. If there is anyone who has figured out a way, please share. Had to create a new API key and reproduce the steps and still, error persists.
https://maps.googleapis.com/maps/api/place/findplacefromtext --> iam using this url to find out the place from text in placesapi how to know the request is coming from android or ios in this url