Fuju.WebView
0.1.0-preview.11
dotnet add package Fuju.WebView --version 0.1.0-preview.11
NuGet\Install-Package Fuju.WebView -Version 0.1.0-preview.11
<PackageReference Include="Fuju.WebView" Version="0.1.0-preview.11" />
<PackageVersion Include="Fuju.WebView" Version="0.1.0-preview.11" />
<PackageReference Include="Fuju.WebView" />
paket add Fuju.WebView --version 0.1.0-preview.11
#r "nuget: Fuju.WebView, 0.1.0-preview.11"
#:package Fuju.WebView@0.1.0-preview.11
#addin nuget:?package=Fuju.WebView&version=0.1.0-preview.11&prerelease
#tool nuget:?package=Fuju.WebView&version=0.1.0-preview.11&prerelease
Fuju.WebView
Web content in Fuju windows, on each system's own browser engine: a WebPage
navigated and scripted from C#, with what it does as state, and a node that shows it, with one script bridge on every
system. It works under Native AOT.
| System | Engine |
|---|---|
| Windows | WebView2 (the Evergreen runtime the system has) |
| macOS | WKWebView |
| Linux | WPE WebKit 2.54 or later, drawn by Fuju under Wayland and X11 |
| iOS | WKWebView |
| Android | The Android System WebView, with AndroidX WebKit for the script bridge |
| Browser | HTML <iframe> overlay (full bridge and scripting for same-origin and NavigateToString; cross-origin is display-only under same-origin policy) |
Where no engine is found the application still starts; WebViewBackends.DetectEnvironment() says whether one is
available and why not.
Using it
Reference the package from a Fuju application:
dotnet add package Fuju.WebView --prerelease
var page = new WebPage();
page.Navigate("https://example.com/");
return WebViewUI.WebView(page).Height(300);
On Linux, most distributions and the Flatpak runtimes have no WPE WebKit with the API Fuju.WebView needs. An
application that must show web content there also references Fuju.WebView.WPE, which carries the engine beside the
executable; Fuju.WebView loads it from there before looking on the system.
On iOS and Android the page is a system view above the window's content, as on macOS and Windows; Fuju's popups are above it, and a touch on it closes them. A page's alert, confirm and prompt are the system's alerts. On Android the package adds the internet permission to the application; a file input does nothing, the zoom factor is the document's CSS zoom, and a successful navigation reports no status code.
In a browser a page keeps no history: a frame's history is the whole tab's, so CanGoBack and CanGoForward stay
false and GoBack and GoForward do nothing. An application that wants back and forward keeps its own list of the
addresses NavigationCompleted reports and navigates to them again. When the user follows a link inside a page from
another origin, the browser does not say where it went: NavigationCompleted reports the address that was asked for.
The sample
samples/WebView is an application with a
browser toolbar built from the page's state and an inline HTML document driven through the script bridge:
dotnet run --project samples/WebView
dotnet run --project samples/WebView -p:FujuWebViewWpe=true # Linux, with the engine from Fuju.WebView.WPE
The repository builds against Fuju's packages on nuget.org, at the version of Fuju.Sdk in global.json.
Building the package needs the .NET android workload (dotnet workload install android) and the Android SDK for its
Android target; -p:FujuWebViewAndroid=false builds without them.
Licence
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. net11.0-android37.0 is compatible. |
-
net11.0
- Fuju (>= 0.1.0-preview.11)
-
net11.0-android37.0
- Fuju (>= 0.1.0-preview.11)
- Xamarin.AndroidX.WebKit (>= 1.18.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.11 | 0 | 12/5/2026 |
| 0.1.0-preview.4 | 52 | 12/3/2026 |
| 0.1.0-preview.3 | 49 | 12/3/2026 |
| 0.1.0-preview.2 | 54 | 12/3/2026 |
| 0.1.0-preview.1 | 49 | 12/2/2026 |
The changes up to this version, newest first: https://github.com/eimsound/Fuju.WebView/commits/568f068b64b29debaf1448cf78d8ef88b5e7241f