Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Loading Html ressources in WebView

$
0
0

Hello,

I'm currently doing a project where I load an html page and all it's resources on the local storage of the device, so I can load my webview before showing it.

To load my webview, I do:

`var source = new HtmlWebViewSource();

source.Html = LoadHtml();

WebView.Source = source;`

When the page and the webview show up, Ive got the html loaded, but there is no resources.

When I go to the local storage of my device, I find my modified html (where resources links are replaced with the resources name in my folder) and all of my resources. And if I launch the .html file with my browser, the resources are loaded.

Any hint?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>