Plugin.Maui.Spine.PushNotifications
0.1.17
dotnet add package Plugin.Maui.Spine.PushNotifications --version 0.1.17
NuGet\Install-Package Plugin.Maui.Spine.PushNotifications -Version 0.1.17
<PackageReference Include="Plugin.Maui.Spine.PushNotifications" Version="0.1.17" />
<PackageVersion Include="Plugin.Maui.Spine.PushNotifications" Version="0.1.17" />
<PackageReference Include="Plugin.Maui.Spine.PushNotifications" />
paket add Plugin.Maui.Spine.PushNotifications --version 0.1.17
#r "nuget: Plugin.Maui.Spine.PushNotifications, 0.1.17"
#:package Plugin.Maui.Spine.PushNotifications@0.1.17
#addin nuget:?package=Plugin.Maui.Spine.PushNotifications&version=0.1.17
#tool nuget:?package=Plugin.Maui.Spine.PushNotifications&version=0.1.17
Plugin.Maui.Spine.PushNotifications
Push and local notifications for .NET MAUI: permission, APNs and FCM tokens and WNS channels, tags, one handler that sees every message, local scheduling with actions, and an optional Notification Service Extension that shows images in pushed notifications on iOS. The server half is Plugin.Maui.Spine.Server.
dotnet add package Plugin.Maui.Spine.PushNotifications
builder
.UseSpine(options => options.AddAssembly(typeof(MauiProgram).Assembly))
.UseSpinePushNotifications(o =>
{
o.Backend = new Uri("https://api.example.com/push/");
o.Permission = PushPermission.WhenAsked;
o.AddChannel("competitions", "Competitions");
o.UseHandler<MyPushHandler>();
});
UseSpine() registers the package on its own; UseSpinePushNotifications is there for the options and works before or after it. Without Spine, the call is required.
// Platforms/iOS/Program.cs — before UIApplication.Main, so the delegate methods exist when UIKit looks
SpinePushNotifications.Install();
public sealed class MyPushHandler(INavigationService navigation) : IPushNotificationHandler
{
public Task<PushPresentation> OnReceivedAsync(PushMessage message, PushContext context) =>
Task.FromResult(context.IsForeground
? PushPresentation.None
: PushPresentation.Banner | PushPresentation.Sound | PushPresentation.List);
public async Task OnOpenedAsync(PushMessage message, string? action)
{
if (message.Route is "settings") await navigation.NavigateToAsync<SettingsPage>();
}
}
await push.RequestPermissionAsync();
await push.SetTagsAsync(["kind:results-published", "competition:59691"]);
ILocalNotificationService schedules local notifications through the same permission and the same handler.
Build properties: SpinePushNotificationsEnabled, SpinePushNotificationsRemote (false keeps local notifications and drops Firebase and the APNs entitlement), SpinePushNotificationsImages (adds the image extension on iOS), SpinePushNotificationsEnvironment (development or production for APNs).
Android needs google-services.json from a Firebase project and SupportedOSPlatformVersion 23 or later. iOS needs an App ID with Push Notifications and, for device builds, a provisioning profile.
Windows needs an Entra app registration (o.Windows.RemoteId is its service principal's Object ID) and WindowsAppSDKSelfContained=false, since the Windows App SDK has no push for self-contained apps; an unpackaged app gets push only while it runs, and local notifications need an MSIX package.
Platforms: Android, iOS, Mac Catalyst (remote push needs a provisioning profile there), Windows (WNS through the Windows App SDK; not yet verified on a Windows machine).
Documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.0 is compatible. net10.0-maccatalyst26.0 is compatible. net10.0-windows10.0.19041 is compatible. |
-
net10.0-android36.0
- AsyncAwaitBestPractices (>= 10.0.0)
- Microsoft.Maui.Controls (>= 10.0.50)
- Plugin.Maui.Spine.Common (>= 0.1.17)
- Xamarin.AndroidX.Fragment (>= 1.9.0)
- Xamarin.AndroidX.Fragment.Ktx (>= 1.9.0)
- Xamarin.AndroidX.Lifecycle.LiveData (>= 2.11.0.1)
- Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.11.0.1)
- Xamarin.AndroidX.Lifecycle.Process (>= 2.11.0.1)
- Xamarin.Firebase.Messaging (>= 125.1.1.1)
-
net10.0-ios26.0
- AsyncAwaitBestPractices (>= 10.0.0)
- Microsoft.Maui.Controls (>= 10.0.50)
- Plugin.Maui.Spine.Common (>= 0.1.17)
-
net10.0-maccatalyst26.0
- AsyncAwaitBestPractices (>= 10.0.0)
- Microsoft.Maui.Controls (>= 10.0.50)
- Plugin.Maui.Spine.Common (>= 0.1.17)
-
net10.0-windows10.0.19041
- AsyncAwaitBestPractices (>= 10.0.0)
- Microsoft.Maui.Controls (>= 10.0.50)
- Microsoft.WindowsAppSDK (>= 1.8.260804001)
- Plugin.Maui.Spine.Common (>= 0.1.17)
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.17 | 0 | 10/20/2026 |
| 0.1.16 | 0 | 10/20/2026 |
| 0.1.15 | 53 | 10/16/2026 |
| 0.1.14 | 90 | 10/9/2026 |
| 0.1.13 | 81 | 10/8/2026 |
| 0.1.12 | 102 | 9/28/2026 |
| 0.1.11 | 97 | 9/23/2026 |
| 0.1.10 | 100 | 9/20/2026 |
| 0.1.9 | 99 | 9/20/2026 |
| 0.1.8 | 103 | 9/20/2026 |
| 0.1.7 | 103 | 9/19/2026 |
| 0.1.6 | 95 | 9/19/2026 |
| 0.1.5 | 97 | 9/19/2026 |
| 0.1.4 | 109 | 9/15/2026 |
| 0.1.3 | 97 | 9/15/2026 |
| 0.1.2 | 109 | 9/14/2026 |
| 0.1.1 | 96 | 9/14/2026 |
| 0.1.0 | 94 | 9/14/2026 |