Here I'll show you a way (sure there are diffrent ways to work it out though) for saving and loading numeric variables or string variables from the LocalStorage...
Hi Pras,
When you fetch the key from the localstorage, the value for this key is stored in the "LocalStorage.ItemValue" expression.
So simple set at "On Item "[key]" get" => System -> Variable [YourVar] -> Value = "LocalStorage.ItemValue".
You can see an example in the attached capx file
s1.construct.net/tutorials/downloads/24272/local-storage-playercoins.capx
Best,
Andreas
oke thank you mr Andreas. ihave fix that about local storage. my app have publised in play store. i have new problem, "is online in browser plugin" not working. Are you have solution about this? :(
thank you mr Andreas
Hi, sorry for the long wait. I can remember that it didn't work with Cocoon, however cocoon is dead now and it should work for Cordova. Have you installed the "Inappbrowser" plugin at your cordova project?
This is needed if you want to use the browser functions.