+ 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?
9 Answers
+ 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