iOS 8 web app became unresponsive after lock screen

Originator:bitinn
Number:rdar://18403338 Date Originated:20/09/2014
Status:Duplicate Resolved:
Product:iOS Product Version:8.0
Classification: Reproducible:Always
 
Current status as of 2014/09/30: Duplicate of 18042389 (Open)

Summary:

After recent iOS 8 release, we are getting more reports from users complaining about unresponsive UI in our web app. All of them are on iOS 8, and all of them added our web app to homescreen.

Further investigation reveals that because our gesture control events are tweening with requestAnimationFrame, they too are affected by a recently discovered iOS 8 WKWebView bug: rAF and setTimeout stop firing after lock screen.

Reference:

http://www.openradar.me/18315454
http://www.sencha.com/blog/apple-shows-love-for-html5-with-ios-8

Steps to Reproduce:
See reference for details.

We are able to reproduce this issue on iPhone 5 with iOS 8.
Mobile Safari does not appear to be affected. Which is why I am filing this bug under iOS.

Expected Results:
rAF and setTimeout should fire as normal after lock screen

Actual Results:
rAF and setTimeout no longer fire after lock screen

(The only remedy for this issue is to exit and relaunch app, since iOS always reload homescreen web app on launch, the problem disappears.)

Version:
iOS 8 [12A365]

Configuration:
Device does not appear to matter.

Comments

True

Same as http://www.openradar.me/18315454

By milad.mostavi at Oct. 27, 2014, 9:58 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!