【问题标题】:Unity Google Play Games Plugin: ERROR NOT AUTHORIZEDUnity Google Play 游戏插件:错误未授权
【发布时间】:2019-07-08 02:49:09
【问题描述】:

我正在开发一款安卓游戏。我正在使用真实设备进行测试。该游戏使用谷歌游戏服务。当我试图实现游戏服务登录授权失败统一。该错误仅在使用EnableSavedGames() 时出现。如果我不使用EnableSavedGames(),那么我可以登录。谁能帮我解决这个问题。

  using GooglePlayGames;
        using GooglePlayGames.BasicApi;
        using UnityEngine.SocialPlatforms;
        PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
            // enables saving game progress.
            .EnableSavedGames()
            .Build();
        PlayGamesPlatform.InitializeInstance(config);
        // recommended for debugging:
        PlayGamesPlatform.DebugLogEnabled = true;
        // Activate the Google Play Games platform
        PlayGamesPlatform.Activate();

登录代码

Social.localUser.Authenticate((bool success) => {
        // handle success or failure
    });

【问题讨论】:

  • 您的帐户电子邮件是否在 Google Play 控制台的测试人员部分?

标签: android unity3d google-play-services google-play-games


【解决方案1】:

新创建的 Play 游戏服务项目存在错误。它来自谷歌方面,他们仍在努力解决这个问题。

https://github.com/playgameservices/play-games-plugin-for-unity/issues/2429

您可以从此链接关注此问题。我希望他们尽快修复它。

【讨论】:

    猜你喜欢
    • 2019-01-09
    • 2022-06-22
    • 1970-01-01
    • 2017-10-18
    • 1970-01-01
    • 2019-09-17
    • 2018-01-31
    • 1970-01-01
    • 2021-10-07
    相关资源
    最近更新 更多