Mafesoft.Maui.AdvancedWebView 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Mafesoft.Maui.AdvancedWebView --version 1.0.0
                    
NuGet\Install-Package Mafesoft.Maui.AdvancedWebView -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mafesoft.Maui.AdvancedWebView" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mafesoft.Maui.AdvancedWebView" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Mafesoft.Maui.AdvancedWebView" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mafesoft.Maui.AdvancedWebView --version 1.0.0
                    
#r "nuget: Mafesoft.Maui.AdvancedWebView, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Mafesoft.Maui.AdvancedWebView@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mafesoft.Maui.AdvancedWebView&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Mafesoft.Maui.AdvancedWebView&version=1.0.0
                    
Install as a Cake Tool

AdvancedWebView

Build NuGet

AdvancedWebView is a lightweight WebView for .NET MAUI (Android and iOS). It extends the built-in MAUI WebView, so navigation events, cookies and user agent keep working, and it adds platform settings that the standard control does not expose.

Requirements

  • .NET 10
  • Android 5.0 (API 21) or later
  • iOS 15 or later

Installation

dotnet add package Mafesoft.Maui.AdvancedWebView

Register the handler in MauiProgram.cs:

using Mafesoft.Maui.Controls;

builder
    .UseMauiApp<App>()
    .UseAdvancedWebView();

Usage

<ContentPage xmlns:awv="clr-namespace:Mafesoft.Maui.Controls;assembly=Mafesoft.Maui.AdvancedWebView">
    <awv:AdvancedWebView
        x:Name="WebView"
        Source="https://dotnet.microsoft.com"
        JavaScriptEnabled="True"
        ScrollBouncesEnabled="False"
        Navigating="OnNavigating" />
</ContentPage>
// Block a URL
void OnNavigating(object sender, WebNavigatingEventArgs e)
{
    if (e.Url.StartsWith("https://ads.")) e.Cancel = true;
}

// Clear the HTTP cache
WebView.ClearCache();

Properties

Property Default Android iOS Notes
JavaScriptEnabled true ✔ ✔ iOS: read when the view is created
JavaScriptCanOpenWindowsAutomatically false ✔ ✔ iOS: read when the view is created
ScrollBouncesEnabled false ✔ ✔ Android: overscroll glow
MediaPlaybackRequiresUserGesture false ✔ ✔ iOS: read when the view is created
AllowsInlineMediaPlayback true ✔ Read when the view is created
AllowMixedContent false ✔ HTTP resources in HTTPS pages
AllowFileAccess false ✔ file:// and content:// URLs
CacheMode Default ✔ Default, NoCache, CacheOnly, CacheElseNetwork

Inherited from the MAUI WebView: Source, UserAgent, Cookies, Navigating, Navigated, EvaluateJavaScriptAsync, GoBack, GoForward, Reload.

Methods

Method Description
ClearCache() Clears the HTTP cache (memory and disk). Cookies and local storage are kept.

Sample app

samples/AdvancedWebView.Sample is a small browser that shows every feature: switches for the properties, cache mode picker, ClearCache(), URL blocking in Navigating, EvaluateJavaScriptAsync, and a local test page for alert(), confirm() and window.open().

dotnet build samples/AdvancedWebView.Sample -t:Run -f net10.0-android

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible.  net10.0-ios26.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.6.0 85 11/14/2026
1.5.1 90 11/14/2026
1.5.0 97 11/11/2026
1.4.0.1 105 11/8/2026
1.4.0 99 11/5/2026
1.3.0 110 11/4/2026
1.2.0 101 11/4/2026
1.1.0 93 11/4/2026
1.0.0 96 11/4/2026