REQUEST_DENIED with Google Places API browser key or app key?

前端 未结 1 1079
醉酒成梦
醉酒成梦 2020-12-01 17:21

I\'m writing an application in Android that needs the Google Places API. I have made a key through the Google console, for both my browser and my specific application. The a

相关标签:
1条回答
  • 2020-12-01 17:54

    Accessing Google places API involves a http/https request from the browser. The application key you created wouldn't work for the Google places as it needs a browser key. You need to create a new browser key on the Google API console clicking the "Create new Browser Key"

    Also leave the Accept requests from these HTTP referers (web sites): blank so that it allows access to all referrers and include the key generated in your query URL.

    0 讨论(0)
提交回复
热议问题