+ 5

How to make localstorage work in the mobile version of SL

I want to be able to save data for my videogame using localstorage, It works on the web version on pc but on the mobile version gives me errors, does someone knows if it´s possible to make it work?

16th Nov 2019, 12:35 AM
Michael Araya
Michael Araya - avatar
16 Respuestas
+ 5
Coder your code is working for me, it remembers everything i enter 😃 Official final answer for Michael Araya : local storage does not work in the mobile Android app of SoloLearn, but it does work on iOS 😇😃
17th Nov 2019, 2:57 PM
marjel101
marjel101 - avatar
+ 3
Coder You can add a new contact or delete a contact. Then you can save and the next time when you start the code you can load your previous list from local storage.
17th Nov 2019, 2:18 PM
marjel101
marjel101 - avatar
+ 2
Hey thanks for answering :)
17th Nov 2019, 4:14 PM
Michael Araya
Michael Araya - avatar
+ 2
Coder that code works for me too. It remembers stuff even after I leave the code and then return.
17th Nov 2019, 4:29 PM
Jason Stone
Jason Stone - avatar
+ 1
Coder are you sure? I once made a practice code for an edX course I did at the time with LocalStorage, and it still works... 🤔 https://code.sololearn.com/WHBHHgCxwnjR/?ref=app
17th Nov 2019, 2:00 PM
marjel101
marjel101 - avatar
+ 1
Coder Well, it works for me. Just click Load most recent database after you added a contact and saved the list in a previous session. The 3 names that are in the list are just examples that will be loaded automatically when the code starts. If you had deleted them in a previous session they will be gone again in your own list... 😶
17th Nov 2019, 2:34 PM
marjel101
marjel101 - avatar
+ 1
Coder Oh, that’s strange. And you already added and saved your new contacts? I just lost my own list, because I emptied and saved 🤣🤣 No error, just no contacts to show 😅
17th Nov 2019, 2:40 PM
marjel101
marjel101 - avatar
+ 1
Coder Maybe it’s only blocked on Android?? Finally something that works better on iOS !! 😂😂😇😇
17th Nov 2019, 2:44 PM
marjel101
marjel101 - avatar
+ 1
Coder Have you tried other local storage codes here on SL? Just do a search in the codes section and you will find more that work on my device as well ... For example: https://code.sololearn.com/W9C910n37sIe/?ref=app
17th Nov 2019, 2:48 PM
marjel101
marjel101 - avatar