Replies: 1 comment 1 reply
-
Hi @a-irsyad how are you? I'm not sure about what happens if the device is online, to be honest, I haven't tested. For race conditions (in the same device or in multiple devices, for example a player saving in the phone and in a tablet at the same time), Google's API has a workflow for automatic conflict resolution, but unfortunately, the way it's designed, it can't be implemented in this plugin, so you have to deal with conflicts manually. Here you have the Google guide on Snapshots, in case it helps you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have two related questions:
What would happen if I call
PlayGamesSnapshotsClient.save_game()
more than once with incremental change while...1....the device is offline. Let's say, first call
save_game()
withplayer_score
100, second call withplayer_score
200 then device goes online. Would only the latest score that get uploaded to Google?2....the device is online. The same case but while uploading
player_score
100 is still in progress, I call save_game() again withplayer_score
200. Would the first uploading progress get cancelled and resume with the latest oneplayer_score
200?Beta Was this translation helpful? Give feedback.
All reactions