How to use the LocalStorage plugin

You're viewing a single comment in a conversation. View all the comments
  • 4 Comments

  • Order by
  • excuse me, I'm sorry to bother you a little. I have downloaded all of the above capx but I don't understand it yet. My question is which event, when local storage stores global variables?

    thank you

    pras

    • 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.

          Best,

          Andreas