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?
-
Did you check the weburl is working fine by testing somewhere else, once its fine then post your codePrasanth– Prasanth2019-04-15 10:46:25 +00:00Commented Apr 15, 2019 at 10:46
-
yeah i took the same url and tested in chrome it is working fine.Charan Darbasthu– Charan Darbasthu2019-04-15 11:07:47 +00:00Commented Apr 15, 2019 at 11:07
-
And did you try another URL in your WebView? Like Google?Gerald Versluis– Gerald Versluis2019-04-15 11:14:12 +00:00Commented Apr 15, 2019 at 11:14
-
ya only one url is not showing up actually the page is heavy and more heavy ui in urlCharan Darbasthu– Charan Darbasthu2019-04-15 11:20:43 +00:00Commented Apr 15, 2019 at 11:20
-
Please edit your post with the xaml/c# code from webview implementation.G.Mich– G.Mich2019-04-15 11:21:09 +00:00Commented Apr 15, 2019 at 11:21
|
Show 2 more comments
1 Answer
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/