Google Play服务SavedGameRequestStatus.InternalError

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

包含API Goodle Drive调用的屏幕截图包括: GoogleDriveApiMethods 有任何解决方法的想法吗?

linzichao 回答:Google Play服务SavedGameRequestStatus.InternalError

我来晚了一点,但对我来说,问题出在一些晦涩的文档中: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);
        }
    });
本文链接:https://www.f2er.com/3018852.html

大家都在问