Occasional WKWebView didFinishNavigation:(WKNavigation*)navigation does not execute

When launching an app on iOS 16.3.1 (or other iOS 16+ versions) and opening a webpage in a webview, after using it for a while (opening and closing pages, switching to background, locking the screen, etc.), there may be occasional instances where the webview page continues to show as loading (for more than ten minutes), and this is due to the fact that the method - (void)webView:(WKWebView*)webView didFinishNavigation:(WKNavigation*)navigation was not called.

Once this situation occurs, any subsequent attempt to open a webview page will fail to load.

The symptom is that the method - (void)webView:(WKWebView*)webView didFinishNavigation:(WKNavigation*)navigation is not called.

If the app is restarted, everything will be restored.

This issue has been observed on iOS 16+ with a higher chance of recurrence on 16.3.1.

I don't know if you handsome guys have encountered this situation before.

We encountered the same problem, have you solved it?

We encountered the same problem, have you solved it?

We encountered the same problem, have you solved it?

Occasional WKWebView didFinishNavigation:(WKNavigation*)navigation does not execute
 
 
Q