Google play saves don't save, please help

Good day! Does anyone know a thing or two about google play saves? I want to save JSON(string) into the cloud and it doesn’t work. I narrowed down a problem and realized that a function is not called which is strange because in the tutorial that I watched everything worked. here is a code snippet with a comments and a function that is not invoked(I can send a whole script if needed also)

public void OpenSaveToCloud(bool saving)
    {
       // debugtext.text = "hello";
        if(Social.localUser.authenticated)
        {
          debugtext.text = "Authorized and proceed to save";
            issaving = saving;
            ((PlayGamesPlatform)Social.Active).SavedGame.OpenWithAutomaticConflictResolution
                (SAVE_NAME, GooglePlayGames.BasicApi.DataSource.ReadCacheOrNetwork,
                ConflictResolutionStrategy.UseLongestPlaytime, SavedGameOpen);   //SavedGame open must be called
         }
         else{
             debugtext.text = "No  authentication";
         }
    }

    private void SavedGameOpen(SavedGameRequestStatus status, ISavedGameMetadata meta)//this function is not called
    {
        if(status == SavedGameRequestStatus.Success)
        {
           // debugtext.text = "hello in save1";
            if (issaving)//if is saving is true we are saving our data to cloud
            {
                debugtext.text = "Saving....";
                byte[] data = System.Text.ASCIIEncoding.ASCII.GetBytes(GetDataToStoreinCloud());
                SavedGameMetadataUpdate update = new SavedGameMetadataUpdate.Builder().Build();
                ((PlayGamesPlatform)Social.Active).SavedGame.CommitUpdate(meta, update, data, SaveUpdate);
            }
            else//if is saving is false we are opening our saved data from cloud
            {
                debugtext.text = "Loading...";
                ((PlayGamesPlatform)Social.Active).SavedGame.ReadBinaryData(meta, ReadDataFromCloud);
            }
        }
        else{
            debugtext.text = "Save request status broke";
        }
    }

Bump

Bump

@conguerror Which function is not called? Please share the output of all your debugtext.text output (as text, not screenshots)

SavedGameOpen function is not called. Debug text on screen logs “Authorized and proceed to save”(line 6) but doesn’t log anything from SavedGameOpen. Yeah, absolutely nothing.

Why not? Where do you call it from? Add more Debug.Log statements to find out where it’s failing. Put one as the very first and last lines of all your methods.

Silly me, I didn’t enable saves in script, there is this line and I didn’t have enable save games
So answer is:

if (platform == null)
        {
            PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().EnableSavedGames().Build();
            PlayGamesPlatform.InitializeInstance(config);
            PlayGamesPlatform.DebugLogEnabled = true;
            platform = PlayGamesPlatform.Activate();
        }

But thank you for trying to help me, I really appreciate it

So is your issue resolved? I wasn’t sure. I don’t see any additional Debug.Log statements, please share your latest code if you’re still having issues.