ios 8 Homescreen webapp, turning iPad off and on stops javascript

I have a fullscreen HTML5 web app for iPads and have just installed IOS 8 to try it out and it all works perfectly until you power the iPad off and back on. As soon as the web app relaunches javascript just stops and loading new pages doesn't restart it.

When opening the same page in Safari on the iPad, turning the iPad off and on it carries on working as expected.

Anyone else noticed this or come up with a work around?


这似乎是我在iOS8.1.1更新中解决的。


I noticed this this problem too. At the moment there seems to be no work around. According to Sencha this is a problem natively.

"This bug is easily reproduced by simply calling setTimeout(callback, 1) or requestAnimationFrame(callback) via some button or event. When you first open your application, you'll notice all timing functions are working fine. However if you lock your phone and then unlock to return to your application, you'll see none of the timing functions can call callbacks anymore. They are simply broken at a native level. There is no reset, no bringing your application back to life, it's a kill it and restart situation." http://www.sencha.com/blog/apple-shows-love-for-html5-with-ios-8

Your best bet is to report this bug to Apple and hopefully they'll patch this in the next update (which should be coming around late September).


刚刚下载并测试了ios8.1的测试版本,它仍然存在问题,我认为我们需要尽可能多的人报告Apple发现的问题。

链接地址: http://www.djcxy.com/p/22810.html

上一篇: ASP.NET vNext应用程序可以在IIS中托管吗?

下一篇: ios 8主屏幕web应用程序,将iPad关闭并停止运行javascript