Unity Google Play游戏插件:错误未授权

问题描述 投票:2回答:1

我正在开发一个Android游戏。我正在使用一个真实的设备进行测试。该游戏使用Google游戏服务。当我试图实现游戏服务登录授权失败的统一。只有在使用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
    });
android unity3d google-play-services google-play-games
1个回答
0
投票

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

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

您可以通过此链接关注此问题。我希望他们尽快解决。

© www.soinside.com 2019 - 2024. All rights reserved.