private String writeSnapshot(Snapshot snapshot) {
// Set the data payload for the snapshot.
snapshot.writeBytes(getCCUserDefaultJSON().getBytes());
// Save the snapshot.
SnapshotMetadataChange metadataChange = new SnapshotMetadataChange.Builder().build();
Games.Snapshots.commitAndClose(getApiClient(), snapshot, metadataChange);
return snapshot.toString();
}
I call saveSnapshot() and works fine, except when STATUS_SNAPSHOT_CONFLICT happened.
Hi there!
I used CollectAllTheStars2 sample to save/load game progress in one snapshot and without UI.
My code for saving Snapshot is:
I call saveSnapshot() and works fine, except when STATUS_SNAPSHOT_CONFLICT happened.
This case I' getting an error
Any suggestions?