Skip to content
Discussion options

You must be logged in to vote

after a very long battle, I came across the answer.
let me guide you through the path of insanity I came across
in your Server side make sure you have

#if !DEBUG
app.UseHttpsRedirection();
#endif

you don't want to upgrade anything
in your Android Blazor Hybrid

  • AndroidManifest.xml add android:usesCleartextTraffic="true" (please be sure that you are NOT gonna use this in production code
    MainPage.xaml.cs
private void Bwv_BlazorWebViewInitialized(object sender, Microsoft.AspNetCore.Components.WebView.BlazorWebViewInitializedEventArgs e)
        {
#if ANDROID && DEBUG
          e.WebView.Settings.MixedContentMode = Android.Webkit.MixedContentHandling.AlwaysAllow;
#endif
        }

MainPage.xaml

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by HugoVG
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants