You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2024. It is now read-only.
WebView.NavigatedNOT fired on iOS when no internet connection is available.
Steps to Reproduce
Hook into WebView.Navigating and WebView.Navigated events.
Run app on iOS without internet connection.
Handler for WebView.Navigated is never called.
Expected Behavior
On iOS, when loading a url in the WebView, if there is no internet connection available, the WebView should fire a Navigated event with WebNavigationResult.Failure.
Since this is observed behavior on Android, I expected iOS to behave the same way.
Actual Behavior
The Navigated event is never fired for this error case.
Basic Information
Version with issue: 4.8.0.1364
Platform Target Frameworks:
iOS: 13, 14
Workaround
No suitable workaround found yet. I know where the bug is and how it can be fixed.
iOS WkWebView requires a delegate WkNavigationDelegate to handle various callbacks from the WkWebView.
The WkNavigationDelegate has 2 methods to handle errors: