【问题标题】:What are the scopes for use with the new Instance ID API (released at Google I/O 15)新的 Instance ID API 的使用范围是什么(在 Google I/O 15 上发布)
【发布时间】:2015-09-23 02:16:54
【问题描述】:

Google 在 I/O 15 上发布了新的 Instance ID 服务和 API:
https://developers.google.com/instance-id/

示例和文档展示了如何将它与 GCM 一起使用,因此它们提供了用于获取与 GCM 一起使用的安全令牌的范围,但还列出了其他服务,并且 API 可以独立于 GCM 使用。

就我而言,我想获得一个可用于验证我的 Android 应用程序的令牌,以及一个用于基本实例 ID 服务器 API 的令牌:
https://developers.google.com/instance-id/reference/server

我实际上并不完全清楚应用程序身份验证应该如何工作 - 也许它只是从上述服务器 API 获得了良好的响应 - 所以可能我只需要一个令牌,但仍然需要知道它的范围。

【问题讨论】:

    标签: android google-oauth google-cloud-platform


    【解决方案1】:

    https://developers.google.com/instance-id/guides/android-implementation 所述,您可以使用任何小于 1000 个字符的 URL 安全字符串。需要什么范围取决于您使用实例 ID 的服务。如果您只是使用实例 ID 服务器 API,则使用什么范围无关紧要。

    【讨论】:

      猜你喜欢
      • 2013-02-21
      • 2013-08-17
      • 1970-01-01
      • 2022-10-06
      • 2022-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多