plugins/shiny-client/skills/shiny-firebase/SKILL.md
Guide for implementing Firebase Cloud Messaging push notifications in .NET MAUI apps using Shiny.Push.FirebaseMessaging on iOS and Android.
npx skillsauth add shinyorg/skills shiny-firebaseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Shiny.Push.FirebaseMessaging provides Firebase Cloud Messaging (FCM) push notification support for .NET MAUI applications on iOS and Android. It wraps the native Firebase iOS SDK (via Slim Bindings) and Android FCM through the Shiny Push infrastructure.
Shiny.Push.FirebaseMessaging
using Shiny;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseShiny(); // Required
// Option 1: Use embedded configuration (GoogleService-Info.plist / google-services.json)
builder.Services.AddPushFirebaseMessaging();
// Option 2: Use embedded configuration explicitly
builder.Services.AddPushFirebaseMessaging(FirebaseConfiguration.Embedded);
// Option 3: 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();
}
}
public class MyPushDelegate : IPushDelegate
{
public Task OnReceived(PushNotification notification)
{
// Handle incoming push notification
return Task.CompletedTask;
}
public Task OnTokenChanged(string token)
{
// Handle FCM token changes - send to your backend
return Task.CompletedTask;
}
public Task OnEntry(PushNotificationResponse response)
{
// Handle when user taps on a notification
return Task.CompletedTask;
}
}
| Parameter | Type | Default | Description |
|---|---|---|---|
| UseEmbeddedConfiguration | bool | true | Use platform config files (GoogleService-Info.plist / google-services.json) |
| AppId | string? | null | Firebase App ID (required if not using embedded config) |
| SenderId | string? | null | Firebase Sender ID (required if not using embedded config) |
| ProjectId | string? | null | Firebase Project ID (required if not using embedded config) |
| ApiKey | string? | null | Firebase API Key (required if not using embedded config) |
| DefaultChannel | NotificationChannel? | null | Android only - default notification channel |
| IntentAction | string? | null | Android only - custom intent action |
GoogleService-Info.plist to your iOS project (if using embedded configuration)BundleResourcegoogle-services.json to your Android project root (if using embedded configuration)The iOS implementation supports topic subscriptions through IPushTagSupport:
// Inject IPushManager
var push = services.GetRequiredService<IPushManager>();
// Cast provider to access tag support
if (push is IPushTagSupport tagSupport)
{
await tagSupport.AddTag("news");
await tagSupport.RemoveTag("promotions");
await tagSupport.SetTags("news", "updates");
await tagSupport.ClearTags();
var currentTags = tagSupport.RegisteredTags;
}
AddPushFirebaseMessaging(FirebaseConfiguration? config = null)Registers Firebase push notification services. Pass null or omit for embedded configuration.
AddPushFirebaseMessaging<TPushDelegate>(FirebaseConfiguration? config = null)Registers Firebase push with a custom IPushDelegate implementation that handles notification events.
Shiny.Push.FirebaseMessaging/FirebaseConfiguration.cs - Configuration recordShiny.Push.FirebaseMessaging/Platforms/Shared/ServiceCollectionExtensions.cs - DI registrationShiny.Push.FirebaseMessaging/Platforms/iOS/FirebasePushProvider.cs - iOS FCM providerdevops
Guide for implementing push notifications in .NET MAUI apps using Shiny.Push (native FCM/APNs) and Shiny.Push.AzureNotificationHubs
tools
Cross-platform local notification management for .NET MAUI apps using Shiny, supporting scheduled, repeating, and geofence-triggered notifications with channels, badges, and interactive actions.
tools
GPS tracking, geofence monitoring, and motion activity recognition for .NET MAUI, iOS, and Android using Shiny.Locations
data-ai
Background job scheduling and execution for .NET MAUI (iOS/Android native OS schedulers) and in-process jobs for plain .NET, Linux, macOS, and Blazor WASM using Shiny.Jobs