Playerprefs getting overwritten on game update

Hey guys, right now we’re testing our update for release on the Amazon app store, and when we test upgrading from the current version off the Amazon store, the save data in the game is completely reset. This has now happened three times in a row, and can’t be blamed on ‘poor installation’ or anything similar.

This is just a standard test we do on all updates; remove the game from the device > download the current store version > play and note all stats/purchases > deploy unreleased update to device > check values are the same.

We use just straight up PlayerPrefs to save the data to the device, nothing more.

This has been working completely fine on all (Google)Android and iOS devices thus far, however it’s just on the Kindle Fire HD that this issue is happening. We haven’t come across this before since this is our first update to the game on Amazon devices.

Has anyone got any advice on the matter? Do Unity deployed apps and Amazon store apps use different data paths? Are there any known cases of PlayerPrefs getting overwritten?

Phil

As long as you keep the identifier (com.company_name.game_name) the same and the app isn’t removed, all the playerprefs should remain untouched between updates.

If not, I would suggest sending a bugreport.

As it turns out we’ve tried to deploy our other Amazon apps (non-unity) over the top of downloaded copies and found that an error is thrown, stopping the deployment of the game. We’ve reached the conclusion (following logcat inspection) that Unity sees this error, then uninstalls/reinstalls the game without saying so.

We can only assume Amazon add another level of copy protection to the games resulting in our in-ability to overwrite the game and restore saved data.