IOS - Lost all storage when close app

  • I build mobile website and embed to ionic via iframe.
  • But In IOS version, when i closed app, HTML5 local storage are gone.
  • I test on safari is still ok.
  • I’ve spent the whole 2 days solving this and still cannot done. Could someone help me please.

which ionic version you are use?

Hi, I am using ionic 3

it is a known thing that local storage can get cleared because the browser/os decides to clear it.

If you don’t want this, use sqlite plugin as per Ionic Storage documentation to persist in a storage that does not get cleared due to OS policy

follow this guide

i follow this guide , and it work so good in android/ios