IPhone web-app from home screen always reloads switching between apps

homescreeniphonemobile-safarimultitasking

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.

Best Answer

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.

Related Topic