Hi everyone,
currently i'm preparing my app for the target version Android 11.
I already moved all app related files to the internal storage of the app.
The issue ist that images i'm loading from internal storage do not appear in the WebView.
It works perfectly with target version Android 10.
Here is my code:
var webView = new WebView();
var htmlSource = new HtmlWebViewSource
{
Html = "<html><body>" + "<img src='" + filePath + "' />" + "</body> </html>"
};
webView.Source = htmlSource;
var webPage = new ContentPage
{
Title = attachment.Dateiname,
Content = webView
};
...
Currently used Xamarin Forms Version: 4.8.0.1821 but also tried with Xamarin Forms Version 5.0.0.2012
The reason why i am using a WebView for images is that the user can zoom with the WebView.
Can anyone help me understanding this issue, please?
Is it a bug, or e new restriction with Android 11?
Thanks in advance.
Best regards