The Google Play Saved Games Developer site mentions "The Saved Games service makes it possible to synchronize a player's game data across multiple devices." But does not give any examples, instruction or even an approach to accomplish this. I'm familiar with implementing snapshots to save and load app data to/from snapshots, but not how to keep device snapshots/data in sync acrosss devices. So what is the approach to leverage the Google Saved Games API to sync a players Game Data across devices? An example of how someone has accomplished this would be even better. Thanks.
1 Answers
It is stated in the documentation you gave that, "To learn how to implement saved games for your platform, see Client implementations."
You may check this Adding Saved Games to Your Android Game guide that shows you how to use the Saved Games API in an Android application.
To retrieve all saved games for the currently signed-in player, call the [load()
](https://developer.android.com/reference/com/google/android/gms/games/snapshot/Snapshots.html#load(com.google.android.gms.common.api.GoogleApiClient, boolean)) method.
Your game can also retrieve a specific saved game through the player's UI selection, as described in Displaying Saved Games. The returned saved game is represented as a Snapshot
, which your game can then open to read its content and metadata.