This is a migrated thread and some comments may be shown as answers.

LocalStorage not persisting

2 Answers 54 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brad
Top achievements
Rank 1
Brad asked on 04 Jan 2013, 12:11 PM
Has anyone else had trouble with localStorage not persisting values when the application is restarted?

Works fine in the simulator, but the variables are lost when the application is closed and reopened on an iPad.

Thanks

2 Answers, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 07 Jan 2013, 10:52 AM
Hello Brad,

Can you try this with our local storage sample by cloning it from here: https://github.com/Icenium/sample-localstorage

You can also check the JavaScript files you are using if there is something that can break it.

Do not hesitate to ask again if you have any other questions.

Kind regards,
Evgeni "Zammy" Petrov
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Brad
Top achievements
Rank 1
answered on 07 Jan 2013, 03:22 PM
I fixed my app's problem by moving my load localstorage routine out of the Cordova onDeviceReady() method, which works fine on the simulator, but doesn't execute on the iPad.

Thanks
Tags
General Discussion
Asked by
Brad
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
Brad
Top achievements
Rank 1
Share this question
or