dotnet / MobileBlazorBindings

Experimental Mobile Blazor Bindings - Build native and hybrid mobile apps with Blazor
MIT License
1.2k stars 168 forks source link

[question] how is blazor hybrid running(if) javascript & css without a browser / browser sandbox #429

Closed Xyncgas closed 2 years ago

Eilon commented 2 years ago

Hi @Xyncgas , all the app code in Blazor Hybrid apps runs as native code on the device (including both in Mobile Blazor Bindings, and in BlazorWebView for .NET MAUI, WPF, and WinForms). This is unlike Blazor WebAssembly where the app code runs in the browser, where there is a sandbox.

The code in Blazor Hybrid apps (both "regular" code, and "Blazor" code in .razor files`) is all compiled and executed on the device, just like any other app. It's no different in terms of permissions for using Swift on iOS, C++ on Windows, or Java on Android.

Eilon commented 2 years ago

You can learn a bit more on this video I did: https://www.youtube.com/watch?v=oNxUfPoAXac