WKWebview got completely blank and cannot load any page anymore in iOS15

My Project is dealing WebView with BLE functions. WebView will call native function and retrieve BLE related data. I found that all webviews will be completely blank after sometime and reload doesn't work.

I implemented WKNavigationDelegate and found that it stops at func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void and it won't call func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!).

I suspected that the networking process is terminated and it won't restart.

I have tested it in iOS 12, 14 and 15. only iOS 15 got the issue.

It would be great if you could give me some insight about it. Thanks a lot.

similar problem, anyone can help ?

Make sure your your Navigation Delegate object aren't being deallocated (implement deinit to check). Also if you create and store delegate within Value Type object make sure it's not copied (Delegate's deinit will be called in this case too).

WKWebview got completely blank and cannot load any page anymore in iOS15
 
 
Q