MapView api 密钥和应用程序指纹

发布于 2024-11-08 21:38:36 字数 196 浏览 5 评论 0原文

我想建立一个 Android 架构,类似于 google 允许使用 api 密钥访问其地图的方式。

我不确定的是,应用程序的指纹是否会在每次检索地图图块的请求时与 api 密钥一起发送,或者 api 密钥是否只是在每次请求时单独发送?

如果指纹确实与 api 密钥一起发送,那么应用程序如何以编程方式获取自己的指纹?

谢谢, 多姆

I'd like to set up an android architecture similar to how google allows access to their maps using an api key.

Something I'm unsure about is if the fingerprint of the app is sent up, along with api key, on every request to retrieve a map tile - or is the api key just sent up on its own on each request?

If the fingerprint is indeed sent along with the api key, then how does the app programatically get its own fingerprint?

Thanks,
Dom

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北风几吹夏 2024-11-15 21:38:36

那么基本上您希望您的用户生成自己的 API 密钥并将其用于对您的服务的每个请求?

唯一有意义的情况是您想跟踪谁做了什么。在这种情况下,您需要在用户提出的每个请求中发送 API 密钥(基本上就是您的指纹)。

Google 使用 API 密钥来识别谁使用其服务执行什么操作。这对他们来说很有意义,因为他们靠收集数据为生。

我对此的看法是:如果您想提供开发人员应该用来为其应用程序提供一些新功能的服务,那么它不应该需要 API 密钥。人们会发现这更烦人而不是有用。除非你有充分的理由需要跟踪他们的行为......

So basically what you want is your users to generate their own API-Key and use it for every request to your Service?

The only scenario in which this would make sense is if you want to keep track of who does what. In this case, you'll want to send the API-Key (which basically is your fingerprint) with every request your user makes.

Google uses the API-Key to identify who does what with their service. This makes sense for them since they life from collecting data.

My opinion on this is: If you want to offer a service that developers should use to give their apps some new functionality, it shouldn't need a API-Key. People will find that more annoying then useful. Unless you have a very good reason why you need to keep track of their actions...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文