【问题标题】: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);
}
});