Is MAUI Blazor Hybrid supported ? #40
Replies: 2 comments
-
Short answer: I haven't tried MAUI in a few months. Looking at the VS templates It creates 4 projects, with 2 main projects. With a project named "MauiWebHybrid" the projects names created are:
SpawnDev.BlazorJS can be used in the MauiWebHybrid.Web.Client Blazor WASM project. Prerendering has to be disabled for components that use BlazorJS or globally (more info). But the Blazor WASM project will only be used for a platform web build. It does seem to be possible to run Blazor WASM on all of the platforms. Build a "Blazor WebAssembly Standalone App" and place the resulting index.html and other build files in the MauiWebHybrid project's wwwroot folder, replacing the index.html file in there. Then, when you run a debug build for Android (for example) it will load a webview like it normally does but instead of loading the MAUI Blazor Javascript library it loads the Blazor WASM app. I haven't had time yet to figure out how to access native APIs from Blazor WASM in the webview yet though. |
Beta Was this translation helpful? Give feedback.
-
I may have been able to get SpawnDev.BlazorJS working in the Shared project, but the |
Beta Was this translation helpful? Give feedback.
-
Is this library compatible with MAUI Blazor ?
Beta Was this translation helpful? Give feedback.
All reactions