When WebView is loading url, user can lose access to internet (for example, he work with router, but money in account is ended).
In this case WebView show own html "Webpage not available".
I try to use custom WebViewClient and callback:
@Override
public void onReceivedError(android.webkit.WebView view, WebResourceRequest request, WebResourceError error) {
super.onReceivedError(view, request, error);
}
but it`s not called.
How to handle offline when loading url in WebView?
P.S. Do not offer solutions to check the network status, please. I am interested only WebView.