I was having some html content not appearing when using the WebView.HtmlContent property. After doing a bit of digging I've discovered that it's due to the use of LoadData in the Android.Webkit.WebView. This code fails to have anything display:
Changed the source to test it there, but I can't get source code to build due to this:
14:36:27:737 1>C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(117,5): error NETSDK1139: The target platform identifier ios was not recognized.
Installed ios workload again, but not working so far, sadly.
Anyway, only change is:
bool IWebViewControl.NavigateToString(string htmlContent)
[..]
webView.LoadData(htmlContent, default, default);
becomes:
webView.LoadDataWithBaseURL(null, htmlContent, default, default, null);
I'm not sure how to submit the source change so hopefully someone can to make the change and put it into the nuget packages.
I was having some html content not appearing when using the WebView.HtmlContent property. After doing a bit of digging I've discovered that it's due to the use of LoadData in the Android.Webkit.WebView. This code fails to have anything display:
But this works fine:
Changed the source to test it there, but I can't get source code to build due to this: 14:36:27:737 1>C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(117,5): error NETSDK1139: The target platform identifier ios was not recognized.
Installed ios workload again, but not working so far, sadly.
I'm not sure how to submit the source change so hopefully someone can to make the change and put it into the nuget packages.
Thanks, Stefan