From f9223d9427b29dca255ee8f752cddded3c6716e9 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 25 Jan 2022 16:44:21 +0100 Subject: [PATCH] fix(ios): Reload webView on webViewWebContentProcessDidTerminate --- ios/Capacitor/Capacitor/WebViewDelegationHandler.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/Capacitor/Capacitor/WebViewDelegationHandler.swift b/ios/Capacitor/Capacitor/WebViewDelegationHandler.swift index c95b5516ec..33c8689e24 100644 --- a/ios/Capacitor/Capacitor/WebViewDelegationHandler.swift +++ b/ios/Capacitor/Capacitor/WebViewDelegationHandler.swift @@ -146,6 +146,10 @@ internal class WebViewDelegationHandler: NSObject, WKNavigationDelegate, WKUIDel CAPLog.print("⚡️ Error: " + error.localizedDescription) } + public func webViewWebContentProcessDidTerminate(_ webView: WKWebView) { + webView.reload() + } + // MARK: - WKScriptMessageHandler func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {