Save game not working

Hey guys! I’m working on a mobile game and I’m trying to save my highscores and coins collected after every death of the character. It’s some kind of ‘hyper-casual’ game. So, in the editor, my Save Game works really fine, no trouble on that. Also, when I lauch my game, it works fine.

But in my alpha version in Play Store, it stopped working. Here follows my code. My Load Game is called ob Begin Play and my Save Game is called everytime the player dies.

Can anyone help me?

Thanks

PS: the branch at the end of SaveGame is because I had a “Print String” there to see if it was working, forgot to remove to print.

Have you tried creating a binary file and writing all save related data to it? The file should be loaded at the startup of a game.

I don’t use blueprints but you can create your custom blueprint node that will do that, check out this answer How do I create my own blueprint node with C++? - Blueprint - Epic Developer Community Forums

If the highscores are only local that would be enough, but if you are uploading them to online highscore table you should include some kind of encryption to prevent people from altering their highscores by messing around with the save file.

Also make sure your app has the permission to read/write files
add <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> to Android manifest file
Hope it helps