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

自闭症网瘾萝莉.ら 提交于 2019-12-23 08:10:09

问题


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?


回答1:


This seems to me resolved in the iOS8.1.1 update.




回答2:


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).




回答3:


Just downloaded and tested the beta version of ios8.1 and it's still broken, I think we need as many people as possible to report the bug Apple to get it noticed.



来源:https://stackoverflow.com/questions/25807711/ios-8-homescreen-webapp-turning-ipad-off-and-on-stops-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!