Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GamesClient.submitScore 是否需要在线连接?当用户离线时它是如何工作的?要提交的分数会保存在某种队列中,以便在有事可做时执行,或者我必须先在本地保存分数,然后在 Google Play 游戏服务上更新?
是的,它需要网络连接。但是,您可以做的是在用户重新登录时使用 SharedPrefrences。这就是我在我的应用程序中所做的。您只需要确保正在离线玩的同一个人就是稍后将登录的同一个人。
希望这可以帮助!