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

Android - This IP, site or mobile application is not authorized to use this API key. Request received from IP address **** with empty referer #281

Open
idanhaviv opened this issue Apr 14, 2020 · 13 comments

Comments

@idanhaviv
Copy link

Hi,

I'm getting this error on Android using a restricted key.

  1. Added Certificate Fingerprints for both debug & production
  2. Api key in both prod & debug AndroidManifest.xml files
  3. 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?

@subramanyaRB
Copy link

This is happening for us too, but only for a few devices and only in production mode. Did you find any solution for this?

@idanhaviv
Copy link
Author

@subramanyaRB nothing yet

@leandrocunha
Copy link

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

@Loown
Copy link

Loown commented Nov 30, 2020

Same problem here

@howsy-jego
Copy link

any updates?

@phatlaunchdeck
Copy link

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

@ubaidjs
Copy link

ubaidjs commented Jul 3, 2021

facing same issue.. please suggest solution

@stefano-bini
Copy link

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.

@bjuzwicki
Copy link

Same problem on dev environment. Using an unrestricted key works fine for the Android app. Any solution?

@kariukis
Copy link

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)

@thorfinnko
Copy link

Has anyone found any solution for this, this is happening on stage env on my device

@Chosen2730
Copy link

Chosen2730 commented Oct 25, 2023

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.

@subins829
Copy link

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

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