Hi dop2000 a suggestion needed.
We have to store multiple global variables values in local storage, to achieve that we created various LocalStorage keys and implemented exactly how you suggested. Everything works fine in debug mode but in a real device, We have to wait some while (probably 30 sec) to make the local storage to work in real-time. Eg, if I alter the player name, then restart the game immediately then the changes won't be made but if I alter the name and wait for like 30 sec then it works perfectly. How to deal with it? Please help.