Xamarin Forms Android WebView Background Image works. MAUI Android WebView Background Image doesn't work
I am porting an app from Xamarin Forms to MAUI with the WebView.
We are hitting a website on our Azure servers. On iOS everything works fine on both the Xamarin version and the MAUI version of the app.When I run the Xamarin version of the app on Android, everything also works fine.
When I run the MAUI version of the app on Android, however, there is a background image that isn't working. This image just doesn't show up. I have tried many things to get it to work and just can't figure it out.
I would like to keep the URL of the website to just those who will help me out. If you are willing to help, please PM me and I will give you the URL of the website.
When I inspect the pages from Android using the Chrome developer inspect tool, here is the topmost css that is being shown:
body {
background-image: url(/static/media/BackgroundImage.1861cdb8.png);
height: 100%;
background-position: 50%;
background-repeat: no-repeat;
background-size: auto;
}
You can see in this image that the background image is in that location:
As I said above this all works and shows that image in the Xamarin Forms build of the app on both iOS and Android and also works fine on the MAUI build for iOS.
Can someone tell me why it doesn't work on the Android MAUI build? I am using a WebView from the Android webkit namespace.