![]() |
VOOZH | about |
dotnet add package Shiny.Push.FirebaseMessaging --version 4.0.1
NuGet\Install-Package Shiny.Push.FirebaseMessaging -Version 4.0.1
<PackageReference Include="Shiny.Push.FirebaseMessaging" Version="4.0.1" />
<PackageVersion Include="Shiny.Push.FirebaseMessaging" Version="4.0.1" />Directory.Packages.props
<PackageReference Include="Shiny.Push.FirebaseMessaging" />Project file
paket add Shiny.Push.FirebaseMessaging --version 4.0.1
#r "nuget: Shiny.Push.FirebaseMessaging, 4.0.1"
#:package Shiny.Push.FirebaseMessaging@4.0.1
#addin nuget:?package=Shiny.Push.FirebaseMessaging&version=4.0.1Install as a Cake Addin
#tool nuget:?package=Shiny.Push.FirebaseMessaging&version=4.0.1Install as a Cake Tool
Firebase Cloud Messaging (FCM) push notification support for .NET MAUI applications on iOS and Android, built on the Shiny framework.
GoogleService-Info.plist / google-services.jsondotnet add package Shiny.Push.FirebaseMessaging
using Shiny;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseShiny();
// Use embedded configuration (GoogleService-Info.plist / google-services.json)
builder.Services.AddPushFirebaseMessaging();
// OR manual configuration
builder.Services.AddPushFirebaseMessaging(new FirebaseConfiguration(
UseEmbeddedConfiguration: false,
AppId: "your-app-id",
SenderId: "your-sender-id",
ProjectId: "your-project-id",
ApiKey: "your-api-key"
));
// With a custom push delegate
builder.Services.AddPushFirebaseMessaging<MyPushDelegate>();
return builder.Build();
}
}
GoogleService-Info.plist from the Firebase ConsoleBundleResourcegoogle-services.json from the Firebase Console| Parameter | Type | Default | Description |
|---|---|---|---|
UseEmbeddedConfiguration |
bool |
true |
Use platform config files |
AppId |
string? |
null |
Firebase App ID |
SenderId |
string? |
null |
Firebase Sender ID |
ProjectId |
string? |
null |
Firebase Project ID |
ApiKey |
string? |
null |
Firebase API Key |
DefaultChannel |
NotificationChannel? |
null |
Android only - default notification channel |
IntentAction |
string? |
null |
Android only - custom intent action |
The iOS implementation supports FCM topic subscriptions through IPushTagSupport:
if (push is IPushTagSupport tagSupport)
{
await tagSupport.AddTag("news");
await tagSupport.RemoveTag("promotions");
await tagSupport.SetTags("news", "updates");
await tagSupport.ClearTags();
}
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 net10.0-android36.0 is compatible. net10.0-ios26.0 net10.0-ios26.0 is compatible. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.1 | 697 | 3/28/2026 |
| 4.0.1-beta-0005 | 107 | 3/28/2026 |
| 4.0.0-beta-0040 | 791 | 6/14/2024 |
| 3.4.0-beta-0010 | 336 | 3/6/2025 |
| 3.4.0-beta-0009 | 219 | 2/5/2025 |
| 3.4.0-beta-0006 | 240 | 2/4/2025 |
| 3.4.0-beta-0005 | 215 | 2/4/2025 |
| 3.4.0-beta-0003 | 208 | 2/4/2025 |
| 3.3.4 | 10,126 | 1/15/2025 |
| 3.3.3 | 9,072 | 4/8/2024 |
| 3.3.3-beta-0007 | 245 | 4/8/2024 |
| 3.3.3-beta-0003 | 228 | 4/8/2024 |
| 3.3.2 | 435 | 3/26/2024 |
| 3.3.1 | 333 | 3/26/2024 |
| 3.3.0 | 452 | 3/18/2024 |
| 3.3.0-beta-0011 | 270 | 3/14/2024 |
| 3.3.0-beta-0009 | 305 | 3/12/2024 |
| 3.3.0-beta-0003 | 325 | 2/28/2024 |
| 3.2.4 | 1,136 | 2/3/2024 |
| 3.2.4-beta-0004 | 378 | 2/3/2024 |