Android App key restriction is not working for Google Places API Web Service [duplicate]

﹥>﹥吖頭↗ 提交于 2019-12-11 07:27:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!