+ 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?
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 😇😃
+ 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.
+ 2
Hey thanks for answering :)
+ 2
Coder that code works for me too. It remembers stuff even after I leave the code and then return.
+ 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
+ 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... 😶
+ 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 😅
+ 1
Coder
Maybe it’s only blocked on Android?? Finally something that works better on iOS !! 😂😂😇😇
+ 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