Framework 7 Color Themes Using Local Storage, Memory Retention Problem


#1

Friends, I’m doing my Mobile Web page with Framework 7. But I have encountered a problem. Using localstorage, I can’t keep color themes and Google Chrome Mobile tabs theme-color in memory at the same time.
My examples are below

https://jsfiddle.net/ebekirbayar/b45kp2q0/26/


#2

Looks like a problem with special characters, try use encodeURIComponent and decodeURIComponent to solve this issue.


#3

@Overman Bro,
I’m sorry, I don’t know what you mean.

I’m new in web development I don’t know much.
Can you be more explanatory


#4

I changed the problem with the Fiddle above. It is stored in Local Storage on the computer, but it is reinstalled on mobile. So I didn’t understand. Am I using a code that doesn’t work in mobile? :pensive:

Codepen Project


#5

Your code wrong work,I rewrote the code,try this
https://codepen.io/anon/pen/gZBYjZ?editors=1011

iOS stores Local Storage data in a location that may be cleaned out by the OS when space is required and some mobile browsers have an option to erase browser history cleaned Local Storage on exit :cold_sweat:

In my APP i use cordova sql storage https://github.com/litehelpers/Cordova-sqlite-storage#readme


#6

Thank you. Inside the code. I got it.
I tried a different method.:+1: