Android App密钥限制不适用于Google Places API网络服务 [英] Android App key restriction is not working for Google Places API Web Service

查看:88
本文介绍了Android App密钥限制不适用于Google Places API网络服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为应用提供了程序包名称(app id)和sha1证书指纹,但是Android App密钥限制仍不适用于Google Places API Web服务

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

Google Web API密钥似乎不支持Android App密钥限制,但是在切换到计划B之前,我会仔细检查,以防万一有人发现它可以正常工作

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

此问题与为什么不重复 Google Places API密钥不起作用? ,因为在这种情况下,我知道了Google Place API Web无法正常工作(由于应用程序限制)的原因,但是没有充分的理由(例如对google doc的引用)导致这种行为,因此无法进行没有充分理由的B计划.

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.

感谢xomena分享了对好的文档的引用,其中特别提到了,哪种限制恰好适用于哪个API.那就是我要找的东西.

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.

推荐答案

Places API Web服务要求对API密钥进行IP地址限制. Android应用程序限制不适用于Google Maps网络服务.

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.

您可以在以下文档中找到有关不同类型的Google Maps API的详细说明以及相应的有效限制:

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!

这篇关于Android App密钥限制不适用于Google Places API网络服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆