Question by
alihamie · Jul 25, 2016 at 01:08 PM ·
androidgoogle play gamessave gamesavegame
Google Play Games Save Games not working
I have the following code
public void SaveGame(ISavedGameMetadata game, byte[] savedData, TimeSpan totalPlaytime)
{
Debug.logger.Log("DRAWAPP", "TRying to save");
ISavedGameClient savedGameClient = PlayGamesPlatform.Instance.SavedGame;
SavedGameMetadataUpdate.Builder builder = new SavedGameMetadataUpdate.Builder();
builder = builder
.WithUpdatedPlayedTime(totalPlaytime)
.WithUpdatedDescription("Saved game at " + DateTime.Now);
SavedGameMetadataUpdate updatedMetadata = builder.Build();
Debug.logger.Log("DRAWAPP", "Trying to COmmit Update....!");
savedGameClient.CommitUpdate(game, updatedMetadata, savedData, OnSavedGameWritten);
Debug.logger.Log("DRAWAPP", "Finished saving!");
}
The Log statement after the CommitUpdate never gets called neither does any function Im calling after SaveGame or even the callback function. It is as if CommitUpdate locks up and never exits, any idea why this is happening ?
Comment
Your answer
Follow this Question
Related Questions
Google Play services error Execution failed for task ':transformClassesWithJarMergingForRelease'. 0 Answers
Google Play Games - Unable to sign in - load the player 0 Answers
2021.2.7: DownloadHandlerTexture and UnityWebRequestTexture not recognized? 1 Answer
What is a Keystore 1 Answer
App crashes since AdMob is added 0 Answers