/shiny:shiny-firebasefrom shiny
Guide for implementing Firebase Cloud Messaging push notifications in .NET MAUI apps using Shiny.Push.FirebaseMessaging on iOS and Android.
Ships in shiny. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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 a Slim Binding) and Android FCM through the Shiny Push infrastructure.
On iOS everything ships in one binding — Shiny.Firebase.iOS.Binding, pulled in automatically — which embeds a single copy of FirebaseCore alongside the Messaging and Analytics shims. Do not add another Firebase iOS binding package (e.g. AdamE.Firebase.iOS.*) to the same app: a second FirebaseCore means a second FIRApp, and whichever one gets configured is not necessarily the one the token request reads.
Shiny.Push.FirebaseMessaging
Shiny.Push.FirebaseMessaging versions independently of the Shiny client packages, but its major version must
match the Shiny.Push it builds on:
Shiny.Push.FirebaseMessaging | Shiny client packages (Shiny.Push, Shiny.Hosting.Maui, …) |
|---|---|
| 7.x | 7.x (.NET 11) |
| 6.x | 6.x (.NET 10) |
| 5.x | 5.x |
When generating or upgrading a project, keep every Shiny.* client reference on the same major as the Firebase
package. Do not pair Shiny.Push.FirebaseMessaging 7.x with Shiny 6.x packages (or the reverse) — it pulls
Shiny.Push 7.0 in under client packages built against 6.x. 7.x targets .NET 11 only (net11.0-ios,
net11.0-android); a .NET 10 app stays on 6.x. Moving between majors needs no Firebase code changes:
AddPushFirebaseMessaging, FirebaseConfiguration and the IPushDelegate members are unchanged.
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 OnNewToken(string token)
{
// Handle FCM token changes - send to your backend
return Task.CompletedTask;
}
public Task OnUnRegistered(string token)
{
// Handle when the device is unregistered from push
return Task.CompletedTask;
}
public Task OnEntry(PushNotification notification)
{
// 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)BundleResourceShinyFirebase.framework ships a merged
PrivacyInfo.xcprivacy (5.2.1+). Do not generate an MSBuild target that copies a manifest into it. If the
app uses FirebaseAnalytics, declare the collected data in the app's own PrivacyInfo.xcprivacy, since
Google ships no manifest for the Analytics binariesgoogle-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.
RequestAccess() never completes — no token, no exception, no OnNewTokenCheck the startup log for:
objc[xxxx]: Class FIRApp is implemented in both .../SomeFramework and .../AnotherFramework.
One of the two will be used. Which one is undefined.
The app has two copies of FirebaseCore, so FirebaseApp.configure() configures one FIRApp while the FCM
token request reads the other, still-unconfigured one — the native completion block never fires and the await
hangs forever.
Shiny.Push.FirebaseMessaging 5.0.2 or earlier, this is a library bug — the Core shim shipped in a
different framework from the Messaging shim. Upgrade to 5.1.0+, where both live in one framework.Shiny.Push.FirebaseMessaging and use that SDK's own provider — do not run both.From 5.1.0 the native shim also fails fast: if Firebase was never configured, RequestAccess() throws
Firebase has not been configured instead of hanging.
The message names Frameworks/ShinyFirebase.framework/ShinyFirebase and an SDK such as GoogleDataTransport.
Versions up to 5.2.0 linked the Firebase SDKs into that framework without their privacy manifests. Upgrade to
5.2.1+, which ships a merged manifest, and remove any workaround target that copied a manifest into the
framework. Do not suggest hand-writing a manifest into the framework as the fix.
src/Shiny.Push.FirebaseMessaging/FirebaseConfiguration.cs - Configuration recordsrc/Shiny.Push.FirebaseMessaging/Platforms/Shared/ServiceCollectionExtensions.cs - DI registrationsrc/Shiny.Push.FirebaseMessaging/Platforms/iOS/FirebasePushProvider.cs - iOS FCM providersrc/Shiny.Firebase.iOS.Binding/ApiDefinitions.cs - the single iOS binding (Core + Messaging + Analytics)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub shinyorg/skills --plugin shiny57 skills in this plugin
/localizegenGenerate strongly-typed localization classes from .resx resource files using Shiny.Extensions.Localization.Generator for .NET applications/shiny-accessorysetupGenerate code using Shiny.BluetoothLE.AccessorySetup - the system accessory pairing sheet for BLE devices (AccessorySetupKit on iOS 18+, CompanionDeviceManager on Android) with no MFi, no location prompt and no general Bluetooth prompt on iOS; picked accessories open as Shiny.BluetoothLE peripherals, and Android adds background presence (device appeared / disappeared) events/shiny-actorsGenerate code using Shiny.Actors — Orleans-style virtual actors without the ceremony, AOT/trim-clean, running anywhere .NET runs including .NET MAUI and Blazor WebAssembly. Covers actor interfaces and source-generated proxies, the ShinyActorBuilder (AddShinyActors), persistent state with ETags, named states and auto-save, event-sourced JournaledActor with snapshots, state and event migrations, typed streams (durable, implicit consumers), timers and persistent reminders (background jobs via Shiny.Jobs, on-time OS notifications via Shiny.Notifications), concurrency control ([Reentrant], [AlwaysInterleave], [ReadOnly], [StatelessWorker]), call filters and request context, OpenTelemetry traces and metrics, remoting over HTTP (Shiny.Net.HttpServer server, RemoteActorSystem client), mDNS discovery of actor servers, Shiny.DocumentDb storage (SQLite, PostgreSQL, IndexedDB...), and the ActorTestHost testing kit./shiny-agesignalsGenerate code using Shiny.AgeSignals to read the user's age range as the app store shares it - Apple Declared Age Range (iOS / macOS 26+) and Google Play Age Signals (Android) - for app store accountability laws (Texas SB 2420, Utah, Louisiana, California AB 1043) and age-gated features/shiny-aiconversationGenerate code for Shiny.AiConversation v3 - session-based AI conversations for .NET over Microsoft.Extensions.AI with persisted, resumable sessions (IAiSessionManager / IAiSession / IAiTurn), streaming replies, the built-in ask_user tool for typed questions and multiple-choice answers, interruption and supersession, usage and context-window pressure tracking, rolling context compaction, silent assistant memory, conversation search, session titles and long-term memory, session interceptors for tools and prompts, pluggable session/memory stores (in-memory or SQLite via Shiny.AiConversation.Stores.SqliteDocDb), and voice conversations via Shiny.AiConversation.Voice (wake word, push-to-talk, follow-up, quiet-word/barge-in interruption, sentence-streamed text-to-speech over Shiny.Speech, acknowledgement modes, sounds, voice selection tools), the MAUI chat UI via Shiny.AiConversation.Maui (AiChatView bound to a session with streaming bubbles, choice chips, push-to-talk and an AiMemoryView), image attachments with retention, and the use_camera tool via Shiny.AiConversation.Maui.Camera, and AG-UI via Shiny.AiConversation.AgUi (a session as an AG-UI event stream for the Shiny AgentView with ask_user questions as interrupts, the render_ui tool for A2UI surfaces, and a remote AG-UI agent as the chat client)/shiny-appdevicebridgeGenerate code using Shiny.AppDeviceBridge, device bridges on your app's own Shiny.Net.HttpServer that also host a web app (Blazor WebAssembly, React, Vue, any static build) inside a .NET MAUI app on Android, iOS, Mac Catalyst, Windows and the maui-labs macOS and Linux heads — served from a loopback HTTP server, updated over the air from a signed release server, GitHub releases or a provider of your own, and given device access through bridges with typed C# and TypeScript clientsOther plugins' skills for the same job