![]() |
VOOZH | about |
dotnet add package Shiny.Push.FirebaseMessaging --version 5.0.1
NuGet\Install-Package Shiny.Push.FirebaseMessaging -Version 5.0.1
<PackageReference Include="Shiny.Push.FirebaseMessaging" Version="5.0.1" />
<PackageVersion Include="Shiny.Push.FirebaseMessaging" Version="5.0.1" />Directory.Packages.props
<PackageReference Include="Shiny.Push.FirebaseMessaging" />Project file
paket add Shiny.Push.FirebaseMessaging --version 5.0.1
#r "nuget: Shiny.Push.FirebaseMessaging, 5.0.1"
#:package Shiny.Push.FirebaseMessaging@5.0.1
#addin nuget:?package=Shiny.Push.FirebaseMessaging&version=5.0.1Install as a Cake Addin
#tool nuget:?package=Shiny.Push.FirebaseMessaging&version=5.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 |
|---|---|---|
| 5.0.1 | 104 | 6/22/2026 |
| 5.0.0 | 95 | 6/20/2026 |
| 4.0.1 | 715 | 3/28/2026 |
| 4.0.1-beta-0005 | 109 | 3/28/2026 |
| 4.0.0-beta-0040 | 793 | 6/14/2024 |
| 3.4.0-beta-0010 | 338 | 3/6/2025 |
| 3.4.0-beta-0009 | 221 | 2/5/2025 |
| 3.4.0-beta-0006 | 241 | 2/4/2025 |
| 3.4.0-beta-0005 | 218 | 2/4/2025 |
| 3.4.0-beta-0003 | 209 | 2/4/2025 |
| 3.3.4 | 10,288 | 1/15/2025 |
| 3.3.3 | 9,081 | 4/8/2024 |
| 3.3.3-beta-0007 | 246 | 4/8/2024 |
| 3.3.3-beta-0003 | 229 | 4/8/2024 |
| 3.3.2 | 436 | 3/26/2024 |
| 3.3.1 | 335 | 3/26/2024 |
| 3.3.0 | 453 | 3/18/2024 |
| 3.3.0-beta-0011 | 272 | 3/14/2024 |
| 3.3.0-beta-0009 | 306 | 3/12/2024 |
| 3.3.0-beta-0003 | 326 | 2/28/2024 |