문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top