Forum Cross Platform with Xamarin
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

WebView/HTTP Connection not working in Release Mode

Hi to all,
I'm working on a cross-platform (UWP & Android) app.
Testing it in Release mode, the WebView is not able to open the HTTP connection to display the IdentityServer4 login page if:

  • the IdentityServer is running on a server that have an IP address like zzz.ttt.100.xxx
  • the app is running on a Win10 PC that have an ip like zzz.ttt.200.yyy
    otherwise if both server and client have an IP address like zzz.ttt.100.* or the app is running in Debug, the system is working.

The AppManifest permissions are:

  • Internet (client & server)
  • Internet (client)
  • Private networks (client & server)

Someone had similar behavior and could help me?

Thanks a lot

Answers

  • LeonLuLeonLu Member, Xamarin Team Xamurai

    If you met this issue in android, I found an similar thread:
    https://xamarin.github.io/bugzilla-archives/30/30608/bug.html

    He solved his issue by enabled the Enable developer instrumentation like following screenshot.

  • DvdGiroDvdGiro Member

    Thanks a lot @LeonLu

    Now I'm testing the UWP app, but in few days I will test the Android one.
    In any case, I found the cause of my problem into server firewall rules that blocked connections coming from other subnet.

  • LeonLuLeonLu Member, Xamarin Team Xamurai

    Ok. thanks for you sharing.

Sign In or Register to comment.