You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Always when a call savedGameClient.CommitUpdate(savedGameMetadata, updatedMetadata, binaryValues, OnSavedGameWritten); the SavedGameMetadata is closed.
Steps to reproduce the behavior:
Initialize the Google Play plugin
Open a saved game with savedGameClient.OpenWithAutomaticConflictResolution
Try to save any values using savedGameClient.CommitUpdate...
Check if the SavedGameMetadata is opened
Expected behavior
After commit and update a new binary the metadata continues opened.
Observed behavior
After commit and update a new binary the metadata is closed
Versions
Unity version: 2021.3.27f1
Google Play Games Plugin for Unity version: V0.11.01
Additional context
ISavedGameMetadatasavedGameMetadata;PlayGamesPlatform.Instance.Authenticate(OnAuthenticate);voidOnAuthenticate(SignInStatusstatus){if(status==SignInStatus.Success){Debug.Log("Auth success");PlayGamesPlatform.Instance.SavedGame.OpenWithAutomaticConflictResolution("my-game",DataSource.ReadCacheOrNetwork,ConflictResolutionStrategy.UseMostRecentlySaved,OnSavedGameOpened);}else{Debug.Log("Auth error");}}voidOnSavedGameOpened(SavedGameRequestStatusstatus,ISavedGameMetadatagame){if(status==SavedGameRequestStatus.Success){Debug.Log("Open save game success");savedGameMetadata=game;SavedGameMetadataUpdate.Builderbuilder=newSavedGameMetadataUpdate.Builder().WithUpdatedDescription($"Saved game at {DateTime.Now}");SavedGameMetadataUpdateupdatedMetadata=builder.Build();using(varmemorystream=newMemoryStream()){varbf=newBinaryFormatter();bf.Serialize(memorystream,"Values to test the save");byte[]binaryValues=memorystream.ToArray();Debug.Log($"IsOpen: {savedGameMetadata.IsOpen}");// Is always `true`PlayGamesPlatform.Instance.SavedGame.CommitUpdate(savedGameMetadata,updatedMetadata,binaryValues,OnSavedGameWritten);}}else{Debug.Log("Open save game error");}}voidOnSavedGameWritten(SavedGameRequestStatusstatus,ISavedGameMetadatagame){if(status==SavedGameRequestStatus.Success){Debug.Log($"IsOpen: {savedGameMetadata.IsOpen}");// Is always `false`}else{Debug.Log("Write save game error");}}
The text was updated successfully, but these errors were encountered:
Describe the bug
Always when a call
savedGameClient.CommitUpdate(savedGameMetadata, updatedMetadata, binaryValues, OnSavedGameWritten);
theSavedGameMetadata
is closed.Steps to reproduce the behavior:
savedGameClient.OpenWithAutomaticConflictResolution
savedGameClient.CommitUpdate...
Expected behavior
After commit and update a new binary the metadata continues opened.
Observed behavior
After commit and update a new binary the metadata is closed
Versions
Additional context
The text was updated successfully, but these errors were encountered: