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

Issue with BaseUrl in WebView

$
0
0

So i'm having issues with stylesheets and images using a WebView.

Here is what i do:
- I POST to an URL and download the response html
- I add this to HtmlWebViewSource(), which i then add to a WebView
- I then set my BaseUrl to the domain
- No profit...

Here are some code snippets:

string raw_html = getHtml();
WebView browser = new WebView();

>

HtmlWebViewSource html = new HtmlWebViewSource {
Html = raw_html
};

html.BaseUrl = getBaseUrl(); // i have tried with many different urls here (to make sure the path is not the problem) however none seems to work
browser.Source = html;


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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