Home > database >  If I update my Unity game on the iOS / Google Play stores, will my users lose their existing data?
If I update my Unity game on the iOS / Google Play stores, will my users lose their existing data?

Time:03-25

I am working with an existing codebase, and we have been developing some changes to our Unity game. It is already live on the App Store and Play Store with a number of users. The new changes add some onboarding and database changes, along with some frontend UI stuff.

The player's data is currently stored with PlayerPrefs, and now also on the Firebase database. I'm trying to figure out a way of testing if the new release will wipe the user's data (the data stored in PlayerPrefs).

I ask because when installing test versions of the app manually, the user is asked to delete their existing version of the game (including all data). I assume this is not the case when a user simply updates to a new version of the app, but I can't find any docs on the actual workings of this.

The closest clue I have found is this post , but I'm not confident enough to release the app just based on these assumptions yet.

If someone could point me to some resources on how App updates work on the Apple / Play stores, that would be greatly appreciated!

CodePudding user response:

Your player's never lose own data when update your app in Apple & Android. If you are save the data like PlayerPrefs way.

CodePudding user response:

The data on their mobile phone (saved with player prefs) won't be automatically lost, but your application will still try to access the old data that was saved by previous versions, so be wary of Backwards Compatibility.

If you save stuff on a previous version, using a player pref field like "gameData" and then update your app and it tries to read it like "game_data", it may cause unexpected behaviour.

  • Related