playgameservices / android-basic-samples

Google Play game services - Android samples
Apache License 2.0
972 stars 970 forks source link

No methods to get snapshot ID #169

Closed Motoban closed 7 years ago

Motoban commented 9 years ago

The following method:

Games.Snapshots.resolveConflict (GoogleApiClient apiClient, String conflictId, String snapshotId, SnapshotMetadataChange metadataChange, SnapshotContents snapshotContents)

requires snapshotId as a parameter, but there are no methods like getID() or getSnapshotID() in Snapshot, SnapshotMetadata and OpenSnapshotResult interfaces.

Motoban commented 9 years ago

It seems there are no simple ways to get snapshot ID.

A possible solution is provided there: http://stackoverflow.com/questions/32823470/snapshotid-for-resolveconflict-in-google-play-saved-games

claywilkinson commented 7 years ago

OpenSnapshotResult has getConflictId(). See: https://developers.google.com/android/reference/com/google/android/gms/games/snapshot/Snapshots.OpenSnapshotResult