Old save file persisting into new android build

Discussion and help for Easy Save 3
Post Reply
rd3d
Posts: 4
Joined: Thu Nov 23, 2023 8:30 am

Old save file persisting into new android build

Post by rd3d »

Hi there,

Thank you for the great asset!

I am having an issue with old .es3 save files reappearing after building to android. We are saving to file using encryption into the persistent data path.

Here is a walkthrough of the issue:

1. Build game to .apk, copy to an android device and install/play, allowing the game to make a save. A new .es3 save file now exists on the device.
2. Clear cache/storage and uninstall the game from the android device. The folder and /es3 file are gone.
3. Rebuild the game from the editor after making changes, copy the .apk to the same android device and build.
4. The old save file from the previous session is still present on the device.

Things of note (maybe):
- When uninstalled, the save file is definitely deleted as the install folder no longer exists.
- The persistent data path is cleared through the editor toolbar before each build.

Do you think this issue is related to ES3? Or a unity build feature? Or is the file not actually being deleted during the uninstall and is just hidden? The only way we can avoid this is to change the name of the .es3 file we write to.

Any insight would be greatly appreciated. Please let me know if you require any more information.

Cheers,
Rich.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Old save file persisting into new android build

Post by Joel »

Hi Rich,

Just to check, what do you mean by "The persistent data path is cleared through the editor toolbar before each build"? Deleting data in the Unity Editor won't affect data on Android.

To delete data on Android you would need to delete it either using code in your app, or using a file browser outside of your app. To my knowledge deleting an app doesn't delete that data from the cloud.

As this is Android's behaviour rather than ours you might want to ask on their forums for more information :)

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
rd3d
Posts: 4
Joined: Thu Nov 23, 2023 8:30 am

Re: Old save file persisting into new android build

Post by rd3d »

Hi Joel,

Thanks for the reply.

It sounds like this isn't an ES3 issue, which is good to know.

Like you say, there is probably some cloud behaviour happening on the android side where files are either being reinstated or just not deleted for a new install.

Much appreciated!

Cheers,
Rich.
Post Reply