Persisting localStorage data to Device storage - Forum - Mobile - Progress Community

Persisting localStorage data to Device storage

 Forum

Persisting localStorage data to Device storage

This question is answered

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.

Verified Answer
  • Hello,

    Just a quick reply.

    localStorage should work.

    What device and operating system version are you using?

    Regards.

All Replies
  • Hello,

    Just a quick reply.

    localStorage should work.

    What device and operating system version are you using?

    Regards.

  • 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