iPhone web-app from home screen always reloads switching between apps
Asked Answered
T

1

9

I'm working on a mobile web app (website) that requires you to add it to the home screen. When you open it, and switch to another app, then go back to my web app, the whole app reloads. It shows the splash screen and doesn't even remember where you last were.

Is there a way around this? I can't find any details in the iOS docs.

Twentyfour answered 23/7, 2012 at 16:0 Comment(0)
C
5

It seems that this topic will answer your question.

You can't avoid this refresh behavior. You should work with the HTML5 local storage to persist the state of your application and use it when the application is launched to restore his state.

Here is a link to the Safari Developer Library focussing on your question.

Caldwell answered 3/8, 2012 at 13:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.