Common Firebase Push Setup
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install multi-language-standards-common-firebase-push-setupWhat this does: Sets up first-time server-side push for one mobile app: inventories existing Firebase and APNs assets, isolates dev and prod with distinct projects and credentials, verifies the signed artifact package or bundle, signing team and APNs environment against the exact registration, controls owner upload and project-scoped sender access, and gates one approved single-device send across validated, accepted and observed states. Use for Firebase push setup, FCM or APNs credentials, or server notification setup; defer client notification UI and store release.
Manual setup by platform
Claude Code
~/.claude/skills/multi-language-standards-common-firebase-push-setup/SKILL.md
Instructions
Firebase Push Setup
Priority: P1 (HIGH)
Establish the server-side prerequisites for one app to receive push. Setup is not a send: no project, API, credential, IAM binding, or message becomes live without explicit approval naming the exact account, project, app identity, and effect.
1. Inventory before registering
- Search the repo, CI config, and documented console state for existing Firebase projects, app registrations,
google-services.json/GoogleService-Info.plist, sender service accounts, APNs keys, and prior push code. - Reuse a matching asset within the same environment; list each missing one explicitly. First-time registration, enabling the
fcm.googleapis.comservice, key upload, and IAM writes are account mutations with separate approvals. - Stop when an existing asset's owner, project, or environment cannot be determined.
2. Isolate dev and prod
- Use a separate Firebase project per environment; separate app registrations inside one project do not isolate credentials, quotas, or audience.
- Keep per-environment client config, sender principals, APNs credentials, and CI secrets apart. Use distinct APNs credentials and trust for dev and prod even when one legacy key technically authorizes both.
- Never fall back to the production project or credential to unblock a dev test.
3. Verify the effective identity
Confirm against the built, signed artifact and the console, not the display name or a config index:
- Firebase project ID/number and the exact registered app.
- Android: the built application ID; match the Google Services client entry by that package, not by list position, and verify the effective runtime Firebase options resolve to the approved project.
- iOS: the extracted signed IPA's bundle ID, signing team, and
aps-environment. Derive the APNs environment from that signature; a TestFlight or production-signed build can use production APNs on a dev Firebase project. - APNs key team ID, Key ID, allowed topics, and actual key environment; the signed build's APNs environment and topics must be covered by the configured key.
Stop on any mismatch and register only after reconciliation. Android-only apps skip all APNs steps.
4. Control credentials and access
- Each owner action needs its own exact-effect approval: enabling the
fcm.googleapis.comservice, creating or uploading an APNs key, and each IAM write. - The owner uploads the APNs key directly in the exact Firebase project's iOS app configuration for the intended environment, and verifies which app registrations that configuration applies to. The
.p8never enters build, release, or sender CI; never accept key bytes, service-account JSON, or device tokens in chat, tickets, source, logs, or artifacts. An approved secret-channel escrow copy is the only exception. - Reuse an APNs key only inside its verified environment and topic scope. Record the allowed topics (a topic-specific key can cover more than one) and the actual environment. Stop and leave the handoff with the owner if scope cannot be verified or exceeds authorization.
- Give the sender a dedicated principal with only
cloudmessaging.messages.createon the target project, and verify effective access including inherited grants — a direct policy check alone is not effective access. Broad roles, topic administration, and notification-admin roles are out of this brief; never use them as a fallback. - Delegate client token registration and handlers to the platform skills: Flutter notifications, React Native notifications, Android notifications, iOS notifications.
5. One approved test send
- Require separate approval naming the dev project, one test device target (FID preferred; a registration token is deprecated but acceptable while supported), the current installation, and the payload. Recheck project, installed build, current target/installation, and payload immediately before dispatch.
- Send exactly one message to that single device. No topic, condition, batch, multicast, broadcast, or production send.
- Keep the states separate:
validate_onlyvalidates the request without delivery and grants no send authority; a message name/ID means the provider accepted the live send; device observation requires the notification seen on the exact installation and correlated to that message. - If dispatch outcome is unknown (timeout, crash after request), record unknown and do not replay. When FCM accepts a message but no device receipt is observed, record accepted/delivery unconfirmed and reconcile the original message and exact-device evidence before considering a separately approved retry. Fresh approval alone is not grounds to retry. Aggregated metrics are not per-message proof.
Evidence and stop
Report project IDs, effective app identity, signing team, APNs team/key/topics/environment, sender principal and verified effective permission, approval references, and each state separately (validated, live accepted, correlated device observation, unknown). Redact device targets and secrets. Without required approval or an owner handoff, finish what is verifiable and name the exact owner action.
References
- Firebase and APNs setup: inventory fields, identity commands, credential upload, effective-IAM verification, and the gated send/evidence contract.
Security
Reviews (0)
Related skills
Browse all →More from Multi-Language Standards
View source →More Build skills
Browse category →Frequently asked questions about common-firebase-push-setup
What does the common-firebase-push-setup skill do?
Sets up first-time server-side push for one mobile app: inventories existing Firebase and APNs assets, isolates dev and prod with distinct projects and credentials, verifies the signed artifact package or bundle, signing team and APNs environment against the exact registration, controls owner upload and project-scoped sender access, and gates one approved single-device send across validated, accepted and observed states. Use for Firebase push setup, FCM or APNs credentials, or server notification setup; defer client notification UI and store release. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the common-firebase-push-setup skill?
Run `npx @skills-hub-ai/cli install multi-language-standards-common-firebase-push-setup` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/multi-language-standards-common-firebase-push-setup/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does common-firebase-push-setup work with?
common-firebase-push-setup runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the common-firebase-push-setup skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use common-firebase-push-setup after installing it?
In Claude Code, type `/multi-language-standards-common-firebase-push-setup` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the common-firebase-push-setup skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.