Unlike Blazor, which primarily runs within a browser; MAUI Blazor Hybrid is designed specifically for building cross-platform applications, utilizing a WebView to execute native JavaScript.
We use Visual Studio 2026 and .NET 10.0 (Long Term Support) to build this sample.
Components/Pages/Home.razorComponents/Pages/DecodeImage.razorComponents/Pages/DecodeVideo.razorwwwroot/index.html: Add dbrjs library from CDN and initialize licensewwwroot/decodeImage.jswwwroot/decodeVideo.jsMauiProgram.cs: Prevent iOS webview from repeatedly displaying authorization promptsMainPage.xaml.cs: Configurate iOS and Android webviewPlatform/Android/AndroidManifest.xml: AddCAMERAPlatform/Android/PermissionManagingBlazorWebChromeClient.cs: Handle permissions from Android webviewPlatform/iOS/Info.plist: AddNSCameraUsageDescriptionPlatform/MacCatalyst/Info.plist: AddNSCameraUsageDescription