【问题标题】:Restoring OAuth 2.0 Client ID for game为游戏恢复 OAuth 2.0 客户端 ID
【发布时间】:2020-07-17 06:51:08
【问题描述】:

报告成就和排行榜时,我收到错误 401,需要登录。 我在 Google Play 中有一个使用 Google Play 游戏服务的游戏。当我转到游戏服务选项卡并选择我的游戏时,我会转到“链接的应用程序”部分,选择我的游戏。底部有一个 OAuth2 客户端 ID 例如

123456789012-randomlettersandnumbers.apps.googleusercontent.com

在console.developers.google.com 上面的Credinentials 标签下客户端ID 缺失。 比如我还有一个:

123456789012-reallydifferentrandomstring.apps.googleusercontent.com

是否可以恢复第一个 ClientID?因为我认为这是导致 401 错误的原因。

【问题讨论】:

    标签: google-play google-play-games google-api-client google-play-console google-console-developer


    【解决方案1】:

    好的,我想通了。要恢复/使用有效的客户 ID,我需要在游戏服务中再次链接游戏。但是在 Firebase 上需要修复一件事。在 firebase 控制台中,我必须再次下载 google-services.json(并添加到游戏中),因为这里的客户端 ID 也发生了变化。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-21
      • 1970-01-01
      • 2017-10-18
      • 2017-10-18
      • 2021-08-20
      • 2013-12-31
      • 2013-07-03
      • 2015-01-14
      相关资源
      最近更新 更多