【问题标题】:SavedGameRequestStatus.InternalError google play servicesSavedGameRequestStatus.InternalError 谷歌播放服务
【发布时间】:2019-11-27 19:34:25
【问题描述】:

我在使用 Google Play 保存游戏时遇到问题。 Google Play 服务的授权工作正常。我正在使用 EnableSavedGames()、DataSource.ReadCacheOrNetwork、ConflictResolutionStrategy.UseLongestPlaytime。 但是当我尝试访问已保存的会话时,我会收到 InternalError 消息。

包含 API Goodle Drive 调用的屏幕截图: GoogleDriveApiMethods 任何想法如何解决这个问题?

【问题讨论】:

    标签: unity3d google-play-services google-play-developer-api


    【解决方案1】:

    我有点晚了,但对我来说,问题出在这个晦涩难懂的文档中:https://github.com/playgameservices/play-games-plugin-for-unity#incremental-authorization

    这将允许静默登录成功,因为如果您要求的不仅仅是 GAMES_LITE,而且如果您使用保存的游戏,则要求 DRIVE.APP_DATA 时,静默登录总是会失败。

    具体来说,我需要为云端硬盘申请权限:

    PlayGamesPlatform.Instance.RequestPermission("https://www.googleapis.com/auth/drive.appdata", permissionResult => {
    
            if (permissionResult == SignInStatus.Success)
            {
                ((PlayGamesPlatform)Social.Active).SavedGame.OpenWithAutomaticConflictResolution(GOOGLE_PLAY_FILENAME, DataSource.ReadCacheOrNetwork,
                    ConflictResolutionStrategy.UseLongestPlaytime, OnSavedGameOpened);
            }
        });
    

    【讨论】:

      猜你喜欢
      • 2014-08-18
      • 2014-05-23
      • 1970-01-01
      • 2016-10-28
      • 2014-11-20
      • 2015-05-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多