0
我正在使用Google Play服务来保存和加载我的保存游戏。如果设备在线,这将起作用。 由于谷歌写道here这是可能做到这一点,而不是在线。但不幸的是,我得到一个Google Games Service Offline
java.lang.IllegalStateException: GoogleApiClient is not connected yet.
,如果我尝试打开我的游戏存档使用此行:
result = Games.Snapshots.open(apiClient, SAVE_GAME_NAME, true).await();
我不明白,如果开放方法需要我如何能加载保存游戏连接ApiClient,我明显没有离线模式。 有人可以帮我吗?
正如我在这里阅读:https://developers.google.com/games/services/training/signin Google将本地保存逻辑留给开发人员。这是正确的吗?我有点困惑。 –