Padfoot
Padfoot
CC#
Created by Padfoot on 3/1/2024 in #help
Changing Source on WebView MAUI results in using file scheme
Hello! I have a simple function which I'm using to change the source of my webview in MAUI. It works for my Android 11 phone but uses file scheme for a newer phone.
internal void RedirectWebView(string url)
{
try
{
wvMain.Source = new UrlWebViewSource
{
Url = url
};
}
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
}
}
internal void RedirectWebView(string url)
{
try
{
wvMain.Source = new UrlWebViewSource
{
Url = url
};
}
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
}
}
3 replies