1

I have some issues with saving data in local storage when my HTML5 application is added from home screen in iOs7. Base on this post here i see that the home screen application is like native and its not using safari's local storage, but i need a workaround for this.

Thanks

anfy2002us
  • 683
  • 1
  • 7
  • 15
  • Are you sure its a localStorage issue? I'm using localStorage all the time and never had problems with Home screen apps. You can use Safari to debug the Home screen app. There you will see any errors in the console. You can also step debug through the localStorage part – HoffZ Dec 17 '13 at 09:11
  • no errors in the log just everytime i launch my app from home screen local storage is cleared, and this is only in ios7. I didn't clear localStorage for sure because in all other platforms its working fine. There must be something special there :/ – anfy2002us Dec 17 '13 at 16:14
  • Remember that Home screen apps will not "see" what you store in ordinary Safari (even though it's the same site). If you store something via the Home Screen app, and then reopen it, is the localStorage still cleared? – HoffZ Dec 17 '13 at 21:28
  • yeah, at every launch localStore is cleared – anfy2002us Dec 18 '13 at 09:14
  • 1
    I have given some history and some options in an answer here: http://stackoverflow.com/a/21292179/564726 – BrutalDev Jan 22 '14 at 19:31

0 Answers0