So I have local WiFi network with no internet connection, within this network I host site and i want to display this site in WebView in Android MAUI app, but since there is no internet i’m getting this error “net::err_internet_disconnected”. I suppose WebView requires internet connection to display anything and i want to disable this.
Of course site is normally working on google chrome.
I was trying to set some settings but really none of them worked:
protected override void OnHandlerChanged()
{
base.OnHandlerChanged();
#if ANDROID
Android.Webkit.WebView web = webView.Handler.PlatformView as Android.Webkit.WebView;
//web.Settings.AllowUniversalAccessFromFileURLs = true;
web.LoadUrl("https://192.168.4.1");
#endif
}
Screen of WebView displaying error
4