Agent skill · Backend & API

firebase-messaging

Use when setting up Firebase Cloud Messaging, managing permissions and tokens, handling background/foreground notification taps, or dispatching messages server-side (HTTP v1).

evancagithub.com/evancaGitHub ↗
claude-codecodexcursorwindsurfMIT
Install
npx skills add evanca/flutter-ai-rules --skill firebase-messaging --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 12 KB
Bundled scripts: none
Path: skills/firebase-messaging/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 604
Language: Shell

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Firebase Cloud Messaging Skill This skill defines how to correctly use Firebase Cloud Messaging (FCM) in Flutter applications. ## When to Use Use this skill when: * Setting up push notifications with FCM in a Flutter project. * Handling messages in foreground, background, and terminated states. * Managing notification permissions and FCM tokens. * Configuring platform-specific notification display behavior. --- ## 1. Setup and Configuration ``` flutter pub add firebase_messaging ``` **iOS:** - Enable **Push Notifications** and **Background Modes** in Xcode. - Upload your **APNs authentication key** to Firebase before using FCM. - Do **not** disable method swizzling — it is required for FCM token handling. - Ensure the bundle ID for your APNs authentication key matches your app's bundle ID. **Android:** - Devices must run **Android 4.4+** with Google Play services installed. - Check for Google Play services compatibility in both `onCreate()` and `onResume()`. **Web:** - Create and register a service worker file named `firebase-messaging-sw.js` in your `web/` directory: ```js importScripts("https://www.gstatic.com/firebasejs/10.7.0/firebase-app-compat.js"); importScripts("https://w

What's inside
Steps it walks through
  1. When to Use
  2. 1. Setup and Configuration
  3. 2. Message Handling
  4. 3. Permissions
  5. 4. Token Management
  6. 5. Platform-Specific Behavior
  7. 6. Auto-Initialization Control
  8. 7. iOS Image Notifications
  9. 8. Notification Interaction Handling
  10. 9. Topic Messaging
  11. 10. Sending a Test Message
  12. 11. Server-Side Credentials & Security
  13. 12. Sending Messages (HTTP v1)
  14. References
More from flutter-ai-rules
All skills →
About this skill
What does the firebase-messaging skill do?

Use when setting up Firebase Cloud Messaging, managing permissions and tokens, handling background/foreground notification taps, or dispatching messages server-side (HTTP v1).

How do I install it?

Run `npx skills add evanca/flutter-ai-rules --skill firebase-messaging --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From evanca/flutter-ai-rules, a repository with 604 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going