I have a problem with UIWebView and running HTML 5 games (which is being developed by another developer). We tried two different options, and none of them is optimal.
Option 1: It displays an HTML 5 game with a "canvas picture". When he does this, nothing falls, however, in iOS 9, when we return to the application from the background, Web View downloads a backup, but the game moves much slower than usual (the problem is not on iOS 7.1 and higher), Speaking much slower , I'm talking about the fact that the animation does not move at the same speed as when the game was first loaded. The strange thing about this problem is that even if the user opens another HTML 5 game (we add several games), the animations are slower for this game. I tried to reject the web view controller when the UIApplicationWillResignActiveNotification message is issued. When I install the game in this way, the slowdown only happens if the application is within 4 seconds (this is very strange).
Option 2: It displays the game using "WebGL". When he does this, the application crashes when the application receives information about iOS 8.0 and higher. My research in the event of a crash is that iOS cannot use OpenGL ES in the background. I assume that the WebGL commands execute similar commands, as OpenGL ES does, and therefore a failure. Disabling the web view controller in UIApplicationWillResignActiveNotification still causes a crash.
Has anyone else dealt with this situation?
html5 ios uiwebview webgl
The guardian
source share