locked
WebView is not loading URL in UWP RRS feed

  • Question

  • User370529 posted

    Hello,

    I have a simple project in which I load a URL on a WebView. It is working as expected on Android, but on UWP, the WebView doesn't load anything and keep in blank.

    It's not a problem of Width/Height as I have changed the background color and I can check it. Furthermore, I tried with a sample project of the docs, and it isn't working too. I don't know what's happening and I can't see nothing in the Output.

    I'm using the latest version of Visual Studio 2019 and Xamarin.Forms. Already checked 'Internet Client & Server' Capabilities on UWP properties.

    Someone knows what could I do to solve this?

    Tuesday, June 9, 2020 7:30 AM

All replies

  • User370529 posted

    Hello again. Still couldn't find the problem. Is someone using WebView on UWP without problems?

    Friday, June 19, 2020 8:41 AM
  • User89714 posted

    @pacomaral said: Hello again. Still couldn't find the problem. Is someone using WebView on UWP without problems?

    I am using Xamarin.Forms v4.5.0.356, and WebViews are populating as expected using UWP.

    @pacomaral said: I'm using the latest version of Visual Studio 2019 and Xamarin.Forms

    As there is more than one "latest" version at any time (stable, pre-release, nightly build), it helps if the actual version number of shown rather than "latest".

    As WebViews populate in Xamarin.Forms v4.5.0.356, I suggest you try using that version. If the problem does not occur, it would suggest that a defect has been introduced in whatever version you are currently using (in which case, log an issue if it hasn't already been done - see https://github.com/xamarin/Xamarin.Forms/issues?q=is%3Aissue+is%3Aopen+WebView+uwp ).

    Friday, June 19, 2020 10:43 AM
  • User370529 posted

    @JohnHardman said:

    @pacomaral said: Hello again. Still couldn't find the problem. Is someone using WebView on UWP without problems?

    I am using Xamarin.Forms v4.5.0.356, and WebViews are populating as expected using UWP.

    @pacomaral said: I'm using the latest version of Visual Studio 2019 and Xamarin.Forms

    As there is more than one "latest" version at any time (stable, pre-release, nightly build), it helps if the actual version number of shown rather than "latest".

    As WebViews populate in Xamarin.Forms v4.5.0.356, I suggest you try using that version. If the problem does not occur, it would suggest that a defect has been introduced in whatever version you are currently using (in which case, log an issue if it hasn't already been done - see https://github.com/xamarin/Xamarin.Forms/issues?q=is%3Aissue+is%3Aopen+WebView+uwp ).

    Thank you for your response. I will test with that version as soon as possible.

    Friday, June 19, 2020 11:33 AM
  • User370529 posted

    @JohnHardman said:

    @pacomaral said: Hello again. Still couldn't find the problem. Is someone using WebView on UWP without problems?

    I am using Xamarin.Forms v4.5.0.356, and WebViews are populating as expected using UWP.

    @pacomaral said: I'm using the latest version of Visual Studio 2019 and Xamarin.Forms

    As there is more than one "latest" version at any time (stable, pre-release, nightly build), it helps if the actual version number of shown rather than "latest".

    As WebViews populate in Xamarin.Forms v4.5.0.356, I suggest you try using that version. If the problem does not occur, it would suggest that a defect has been introduced in whatever version you are currently using (in which case, log an issue if it hasn't already been done - see https://github.com/xamarin/Xamarin.Forms/issues?q=is%3Aissue+is%3Aopen+WebView+uwp ).

    I tried with Xamarin.Forms v4.5.0.356 and the WebView still doesn't work. It's not a problem of the layout because setting the BackgroundColor works okay, but it doesn't load nothing.

    Do you have any idea of what could be happening? I'm running the debug mode in the local machine, and it does have an internet connection (checked it in the code).

    Thursday, June 25, 2020 9:05 AM
  • User370529 posted

    Hello guys,

    I want to let you know that I've found the problem. I was missing the manifest's Capability: Private Networks (Clients & Server). I added the both of Internet (Client / Client & Server), but it did not work until i added that one too.

    Friday, August 7, 2020 6:47 AM