Hello,
I use PlayerPrefs to save user data. There is inventory system in the game. All items are saved with PlayerPrefs using strings. And I am straggling with a weird bug that delete some of saved strings in some users after updating the game.
One month ago I updated the game on Google Play Store and got a lot of reports from users saying that they lost some of thier items or all the items after last update. It was a big surprise because neither I nor my friend, that also worked on the game, didn’t lose any old item after testing the update. All our familiar also didn’t lose anything.
We played on older version and update it to the latest version, trying to reproduce the bug, but still nothing lost. I also downloaded the old Google Play version of the game and updated the game from Google Play - also nothing lost. Tested on several devices.
We asked some players if they lost their items, more than a half lost nothing. So I thought that it was not connected with updating and there was some bug that delete items during playing. But I didn’t manage to find anything in a week and there were no new reports about items disappearance since 1-2 days after update.
We haven’t had any reports about items disappearance till now, when we released our new update. After what we got ton of reports about losing items. We made a poll and found out that 40% of players lost some of their items. All lost items were totaly different. The amount of lost items was random, someone lost 1 item, someone 3 and so on. All players that lost items have different devices, different android version and there doesn’t seem to be a pattern of that bug. All those players lost their items after opening updated game .
I released some updates with minor bug fixed to ensure that loses happen exactly because of updating… And yes, some players also lost some random items, new reports appeared.
I have no idea what can cause that bug. It seems to be that some random PlayerPrefs strings just dissapear in some player after updating the game. I don’t know what to do.
I also thought that the problem can be connected with Unity. I updated it one month ago from 2020.1(I guess) to 2020.1.2f1, exectly when the bug appeared.
One day ago I updated Unity to the last version (2020.1.6f1) and released a new update and also got reports.