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).
npx skills add evanca/flutter-ai-rules --skill firebase-messaging --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- When to Use
- 1. Setup and Configuration
- 2. Message Handling
- 3. Permissions
- 4. Token Management
- 5. Platform-Specific Behavior
- 6. Auto-Initialization Control
- 7. iOS Image Notifications
- 8. Notification Interaction Handling
- 9. Topic Messaging
- 10. Sending a Test Message
- 11. Server-Side Credentials & Security
- 12. Sending Messages (HTTP v1)
- References
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.
