【问题标题】:Different Google Play Games user id on android and iOSAndroid 和 iOS 上不同的 Google Play 游戏用户 ID
【发布时间】:2016-08-30 06:12:53
【问题描述】:

我发现了奇怪的问题。 Google Play Games 在某些 gmail 帐户的不同平台上返回不同的用户 ID。

Android: g004520354...
iOS: 108586408195...

我有 gmail 帐户,两个平台上的用户 ID 相同,但我们发现帐户(1 个月大)具有不同的 ID。

有人有同样的经历吗?

【问题讨论】:

  • 从外观上看,第一个似乎是 Google Player Id(仅在 Google Play 游戏中使用),第二个看起来像一个普通的 Google 帐户 ID(也将是 Google如果用户拥有 Google Plus,则加上 id)... 现在为什么你要在不同的平台上获取一个和另一个,我不知道。您能否提供您在 Android 和 iOS 上使用的相关代码来获取这些值?

标签: android ios google-play-games


【解决方案1】:

根据这个documentation,您将拥有不同平台的不同客户端ID。根据Creating multiple client IDs 的说法,如果您正在创建一个在多个平台上运行的游戏,您将需要为每个平台(Web、Android 和 iOS)创建一个单独的客户端 ID。为此,请点击Linked apps页面上的Link another app按钮,然后重复从Create a linked application部分开始的步骤。

查看SO question 了解更多信息。

【讨论】:

  • 在您提供链接的文档中,客户端 ID 是服务器用来调用 Google API 的密钥。问题是关于应用程序用户的用户 ID,与这些客户端 ID 无关。
猜你喜欢
  • 1970-01-01
  • 2015-01-20
  • 2015-08-26
  • 2016-02-16
  • 1970-01-01
  • 1970-01-01
  • 2016-12-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多