AngryMonkey.CloudBlazor.App.Maui
1.0.1
dotnet add package AngryMonkey.CloudBlazor.App.Maui --version 1.0.1
NuGet\Install-Package AngryMonkey.CloudBlazor.App.Maui -Version 1.0.1
<PackageReference Include="AngryMonkey.CloudBlazor.App.Maui" Version="1.0.1" />
<PackageVersion Include="AngryMonkey.CloudBlazor.App.Maui" Version="1.0.1" />
<PackageReference Include="AngryMonkey.CloudBlazor.App.Maui" />
paket add AngryMonkey.CloudBlazor.App.Maui --version 1.0.1
#r "nuget: AngryMonkey.CloudBlazor.App.Maui, 1.0.1"
#:package AngryMonkey.CloudBlazor.App.Maui@1.0.1
#addin nuget:?package=AngryMonkey.CloudBlazor.App.Maui&version=1.0.1
#tool nuget:?package=AngryMonkey.CloudBlazor.App.Maui&version=1.0.1
CloudBlazor.App.Maui
.NET MAUI Blazor Hybrid integration for CloudBlazor.App: native navigation, hardware back button handling, and platform launcher support.
Formerly published as AngryMonkey.CloudApp.Maui and AngryMonkey.CloudApp.Mobile. See
Migrating.
Supported platforms
Android · iOS · macOS (Mac Catalyst) · Windows
Installation
dotnet add package AngryMonkey.CloudBlazor.App.Maui
This package references
AngryMonkey.CloudBlazor.App, so
the shared navigation contract comes with it.
Quick start
public static MauiApp CreateMauiApp()
{
MauiAppBuilder builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts => fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"));
builder.Services.AddMauiBlazorWebView();
// Registers MauiNavigationService as the INavigationService.
builder.Services.AddCloudAppMaui();
return builder.Build();
}
Application code depends only on INavigationService, so the same components run unchanged in a
browser host that calls AddCloudApp() instead.
Hardware back button
TryNavigateBack returns false on the root page with no popup open, which is exactly the
signal needed to let the platform close the application:
protected override bool OnBackButtonPressed() => _navigation.TryNavigateBack();
Returning true means the service handled the navigation, so the platform should not.
What differs from the web service
MauiNavigationService shares all of NavigationServiceBase with WebNavigationService. Only
external navigation behaves differently.
await Navigation.NavigateToExternalAsync("https://angrymonkeycloud.com");
await Navigation.NavigateToExternalAsync("tel:+96112345678");
await Navigation.NavigateToExternalAsync("www.angrymonkeycloud.com"); // promoted to https
| URL form | Handling |
|---|---|
http: / https: |
Platform launcher — opens the system browser. |
tel: mailto: sms: geo: |
Platform launcher — opens the dialer, mail client, or maps. |
| Bare host containing a dot | Promoted to https:// and launched. |
| Anything else | Routed inside the BlazorWebView. |
Opening these through the launcher rather than the web view is the point: a tel: link inside a
BlazorWebView does nothing useful on its own.
When the launcher fails — typically because no handler is installed for the scheme — the navigation falls back to the web view rather than being dropped.
Deep links
public override bool TryHandleDeepLink(Uri uri)
{
// Return true once the link has been consumed.
return false;
}
The string overload parses and delegates to the Uri overload, so only one needs overriding.
Migrating
| Previous package | Last version | Replacement |
|---|---|---|
AngryMonkey.CloudApp.Maui |
1.2.1 | AngryMonkey.CloudBlazor.App.Maui |
AngryMonkey.CloudApp.Mobile |
1.1.0 | AngryMonkey.CloudBlazor.App.Maui |
The previous packages are no longer updated. The repositories were merged into CloudBlazor, where all four packages ship as a matched set.
Required changes
| Before | After |
|---|---|
using AngryMonkey.CloudApp; |
using AngryMonkey.CloudBlazor.App; |
Manual services.AddScoped<INavigationService, MauiNavigationService>() |
services.AddCloudAppMaui() |
MauiNavigationService keeps its name and members. Two behaviours changed as bug fixes:
SoftNavigateis no longerasync void. An exception inside it used to be unobservable and could tear down the process.- A wider set of URI schemes reaches the launcher.
sms:was previously routed into the web view.
Related packages
| Package | Purpose |
|---|---|
AngryMonkey.CloudBlazor |
Shared components and browser behaviors. |
AngryMonkey.CloudBlazor.App |
Navigation contract and browser implementation. |
AngryMonkey.CloudBlazor.Web |
Website infrastructure: head metadata, SEO, bundles. |
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- AngryMonkey.CloudBlazor.App (>= 1.0.1)
- Microsoft.Maui.Controls (>= 10.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AngryMonkey.CloudBlazor.App.Maui:
| Package | Downloads |
|---|---|
|
AngryMonkey.CloudLogin.Maui
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.