Charan Darbasthu
Charan Darbasthu

Reputation: 31

Xamarin forms WebView not loading for specific url

Hi im using Xamarin forms webview and i had a specific url which is developed by my company when ever im loading the url the webview is returning empty screen can someone help me with this?

Upvotes: 0

Views: 3033

Answers (1)

G.Mich
G.Mich

Reputation: 1666

First of all the URLs must be fully formed with the protocol specified (i.e. it must have "http://" or "https://" prepended to it).

var browser = new WebView
{
  Source = "http://xamarin.com"
};

Check your webview layout. Maybe is not have a good position in xaml.

For ios check NSAppTransportSecurity if the url is not https.

If you want open the browser tab inside your app check this https://askxammy.com/customizing-browser-appearance-in-xamarin-forms/

Upvotes: 1

Related Questions