Skip to content

Commit

Permalink
feat(hybrid): add switch to BlazorWebView to configure fire and forge…
Browse files Browse the repository at this point in the history
…t for Android disposal #7775 (#7776)
  • Loading branch information
mhrastegari committed Jun 13, 2024
1 parent 1161b7a commit 12fa67e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,7 @@ private static void SetupBlazorWebView()
settings.BlockNetworkLoads = settings.BlockNetworkImage = false;
#endif
});

AppContext.SetSwitch("BlazorWebView.AndroidFireAndForgetAsync", isEnabled: true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ private static void SetupBlazorWebView()
settings.BlockNetworkLoads = settings.BlockNetworkImage = false;
#endif
});

AppContext.SetSwitch("BlazorWebView.AndroidFireAndForgetAsync", isEnabled: true);
}

#if IOS || MACCATALYST
Expand Down

0 comments on commit 12fa67e

Please sign in to comment.