andresilveirah / FrozenJSWkWebview

A POC to investigate WKWebView pausing Javascript evaluation and timers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FrozenJSWkWebview

A POC to investigate WKWebView pausing Javascript evaluation and timers.

TL;DR; - if a WKWebView is instantiated but not attached to a controller in the foreground (presented to the user), iOS pauses the webview preventing it from evaluating javascript. This issue is only reproducedable on real physical devices.

For more context check this StackOverflow question - iOS - Present/Show ViewController while content underneath remains interactive

About

A POC to investigate WKWebView pausing Javascript evaluation and timers


Languages

Language:Swift 100.0%