问题
I have provided package name ( app id ) and sha1 certificate fingerprint for app, but still Android App key restriction is not working for Google Places API Web Service
Looks like Android App key restriction not supported for Google Web API key, however before switching to plan B, I though to double check, in case anyone have found it working
This question is not a duplicate of Why Google places API key not works? because in this case I am aware why Google Place API Web is not working ( because of app restriction ), but do not have a solid reason (such as ref to google doc) for such behavior, and can't go for plan B without solid reason.
Thanks to xomena for sharing a reference to a good doc, which specifically mention, which restriction is applicable to which API exactly. Thats what I am looking for.
回答1:
The Places API web service requires an IP address restriction on the API key. The Android app restriction won't work with Google Maps web services.
You can find detailed explanation regarding different types of Google Maps APIs and corresponding valid restrictions in the following document:
https://developers.google.com/maps/faq#keysystem
I hope this helps!
来源:https://stackoverflow.com/questions/48106265/android-app-key-restriction-is-not-working-for-google-places-api-web-service