I can’t debug this properly because it has been reported from players of my game on phones I don’t have.
On 150 ratings, 5 of them gave me one star, telling me “the game doesn’t save”.
This happens on various phones (even on Galaxy S7) but other players with the same phones don’t have the problem.
Of course, I’m doing PlayerPrefs.Save(); just after all my PlayerPrefs.SetInt()
I can’t really believe it’s a memory failure because I’m only saving a few integers…
I’m thinking maybe these people have got an app that is deleting other app’s caches ? Does that exist ?
I really don’t know what to do here … Do you guys have any idea ?
I guess noone can tell unless it’s a common/known issue.
If it happens that rarely it might be that an exception has been thrown under some specific conditions etc.
Have you contacted one of those guys to ask for more information? Do you know if it happens regularly or randomly?
yes I’ve asked them all, but none of them answer …
One of them told in his review he tried several times because he liked the game, but that was always failing. Sadly I’ve got no more infos about that.
It happened with Unity 5.3.4 and I still got 2 new reports on 5.5.1p1
Possible problems could be a permission setting in the android manifest. An antivirus software on the users device(we ran into this with another thing we were doing). Or, as you said, another app. Maybe some sort of optimization app. I’m not sure how big your game is, but its possible some app may try to reduce it’s cache for some reason.
As @Suddoha said though, it’s hard to diagnose unless you can get this to happen to you or get someone who has the issue to help you. Running logcat on a device may reveal more info.
Just a tip for future. If You have some sort of www server do online log system. Just whenever error happens/process fails/the hell gone loose send www request to php file and store it into database. This will save You a ton of guessing what went wrong after realese.