Jump to content

localstorage of iframe with iPhone deleted after a while

Recommended Posts

I have a page with an iframe. This iframe contains a web app which saves some data to localstorage. If I open the web app on its own without being inside an iframe then there's no problem. But when it is contained in the iframe of my SquareSpace page, the localstorage data is deleted after a while. I'm convinced that it's cleared after a period of time because simply refreshing or closing and reopening the tab will not cause the deletion. It's only being deleted after some time has passed. I have tested it with both Chrome and Safari on an iPhone. I haven't tried it on an Android phone. It doesn't happen on my Macbook.

Why is this happening and how do I keep it from happening?

Edited by webdan
Problem happens only on mobile
Link to comment
  • webdan changed the title to localstorage of iframe with iPhone deleted after a while
  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.