0

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?

7
  • Did you check the weburl is working fine by testing somewhere else, once its fine then post your code Commented Apr 15, 2019 at 10:46
  • yeah i took the same url and tested in chrome it is working fine. Commented Apr 15, 2019 at 11:07
  • And did you try another URL in your WebView? Like Google? Commented Apr 15, 2019 at 11:14
  • ya only one url is not showing up actually the page is heavy and more heavy ui in url Commented Apr 15, 2019 at 11:20
  • Please edit your post with the xaml/c# code from webview implementation. Commented Apr 15, 2019 at 11:21

1 Answer 1

1

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/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.