Question

I'm programming a web clip app which you can add to your home screen via Safari, and every time I open it, it reloads to the page which the web clip was saved in. How can I make the web app open where it last left off?

Was it helpful?

Solution

It must reload the page unless the broswer or the app task hasn't been killed. In order to make the app restart from where it left off, you need to perserve the page state and load it with javascript and html5. Here's an example where you click on a tab/menu of the page, it will be re-opened http://dotaprj.me/ restarted (close the page then reopen it)

Also, by web clip, if you mean HTML5 video, then you can save where the user is at in the timeframe and load it back with javascript.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top