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.

- 13,147
- 2
- 17
- 59
-
I've already implemented all of the above in my app. Saving/Loading/Opening snapshots. My question is in regards in the approach to keeping the same game progress synchronized across multiple devices. Do I have to force the user to load the snapshot every time they open the app? If the app is sitting in memory on a second device, how do I force that to refresh the data when they open the app? – John May 30 '17 at 17:47