Skip to main content

Common Firebase Push Setup

v1.0.0New

Unsigned, install at your own risk

Unverified

This 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-setup

What 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.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/multi-language-standards-common-firebase-push-setup/SKILL.md

Setup guide →
0Save

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.com service, 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.com service, 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 .p8 never 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.create on 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_only validates 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.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →

More from Multi-Language Standards

View source →
typescript-best-practicesWrite idiomatic TypeScript patterns for clean, maintainable code. Use when writing or refactoring TypeScript classes, functions, modules, or async logic.29 installscavemanUltra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.25 installsphp-securityPHP-only security standards for database access, password handling, and input validation. Use when securing PHP apps against SQL injection, XSS, or weak password storage; defer Laravel middleware and security questions in other languages.15 installscommon-security-auditProbe for hardcoded secrets, injection surfaces, unguarded routes, business logic flaws, and platform-specific weaknesses across backend (Node, Go, Java, Python, Rust), frontend (React, Angular, Vue), and mobile (iOS, Android, Flutter) codebases. Use when performing security audits, vulnerability scans, secrets detection, or penetration testing.12 installsandroid-performanceOptimize Android app startup, UI rendering, frame stability, and benchmark performance with Baseline Profiles, Macrobenchmark, and lazy initialization. Use when reducing startup time, diagnosing jank, or measuring rendering; defer Compose state API and test-only questions.10 installsandroid-composeBuild high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects; defer deep-link and navigation routing to android-navigation.9 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.653 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.553 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.365 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.266 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.185 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions149 installs

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.