Persisting localStorage data to Device storage

Posted by spserna2 on 27-Jan-2015 04:27

Hi all

recently I had a requirement persist the application state so that user can resume to the last page, whenever the app is close or device shut down.

I initially assume that localStorage data will be persist even if I terminate the app, it seen not the case after several tests.

What could be a better way to persist the localStorage state to the device?

Thank you.

Posted by egarcia on 27-Jan-2015 07:26

Hello,

Just a quick reply.

localStorage should work.

What device and operating system version are you using?

Regards.

All Replies

Posted by egarcia on 27-Jan-2015 07:26

Hello,

Just a quick reply.

localStorage should work.

What device and operating system version are you using?

Regards.

Posted by spserna2 on 29-Jan-2015 04:39

In fact, it is my problem, I have use clearStorage command that wipe out entire data.

Been worried about 5MB limitation of local storage usage

This thread is closed