I released an Android game in 2020 with the latest C3 version. In it, I use local storage to store high scores and other information.
It's a puzzle game, and each round is intended to be played within an hour or so in one go, but some of my users play it differently. The longest session I know of is about 4 months. The game was always running in the background while the user used other apps on the phone.
Just now, one user had the highest score ever when he died, and it wasn't recorded in the local storage. There is nothing in the code that explains why it wouldn't happen, but my ONLY explanation is the session's extreme duration.
I have tried to recreate this error but creating these long sessions obviously takes a long time... :P
My only solution to brute force fixing this is to systematically write the current status to local storage, or maybe there is a function for that when the app loses focus.