capacitor-push-notifications
Guides the agent through setting up and using push notifications in Capacitor apps using Firebase Cloud Messaging via the @capacitor-firebase/messaging plugin.
Skill by involvex
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/involvex-capacitor-push-notifications
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/capacitor-push-notifications
What's inside
- Skill name
capacitor-push-notifications- Description
- Guides the agent through setting up and using push notifications in Capacitor apps using Firebase Cloud Messaging via the @capacitor-firebase/messaging plugin. Covers Firebase project setup, plugin installation, platform-specific configuration (Android, iOS, Web), APNs certificate setup, requesting permissions, retrieving FCM tokens, listening for notifications, topic subscriptions, notification channels, and testing. Do not use for local notifications, non-Firebase push providers, migrating Capacitor apps or plugins, or non-Capacitor mobile frameworks.
- License
- MIT
- Instructions
- 126 lines in SKILL.md · view on GitHub
Files (7)
- SKILL.md
- android-setup.md · references/
- firebase-setup.md · references/
- implementation.md · references/
- ios-setup.md · references/
- testing.md · references/
- web-setup.md · references/
SKILL.md (first lines)
---
name: capacitor-push-notifications
description: "Guides the agent through setting up and using push notifications in Capacitor apps using Firebase Cloud Messaging via the @capacitor-firebase/messaging plugin. Covers Firebase project setup, plugin installation, platform-specific configuration (Android, iOS, Web), APNs certificate setup, requesting permissions, retrieving FCM tokens, listening for notifications, topic subscriptions, notification channels, and testing. Do not use for local notifications, non-Firebase push providers, migrating Capacitor apps or plugins, or non-Capacitor mobile frameworks."
---
# Capacitor Push Notifications
Set up and use push notifications in Capacitor apps using Firebase Cloud Messaging (FCM) via the `@capacitor-firebase/messaging` plugin.
## Prerequisites
1. **Capacitor 6, 7, or 8** app.
2. Node.js and npm installed.
3. A **Firebase project**. Create one at [Firebase console](https://console.firebase.google.com/) if needed.
4. For **iOS**: A paid [Apple Developer Program](https://developer.apple.com/programs/) membership and Xcode installed.
5. For **Android**: Android Studio installed.
6. `@capacitor/push-notifications` must **not** be installed — it conflicts with `@capacitor-firebase/messaging`.
## Agent Behavior
- **Guide step-by-step.** Walk the user through the process one step at a time. Never present multiple unrelated questions at once.
- **Auto-detect before asking.** Check the project for platforms (`android/`, `ios/`), build tools, framework, and `package.json` dependencies. Only ask the user when something cannot be detected.
- **One decision at a time.** When a step requires user input, ask that single question, wait for the answer, then continue.
- **Present clear options.** Provide concrete choices (e.g., "Do you want to configure topic subscriptions? (yes/no)") instead of open-ended questions.
## Procedures
### Step 1: Analyze the Project
Auto-detect the following by reading project files — do **not** ask the user for information that can be inferred:
1. **Platforms**: Check which directories exist (`android/`, `ios/`). These are the platforms to configure.
2. **Build tool / framework**: Check for `vite.config.ts`, `angular.json`, `webpack.config.js`, `next.config.js`, etc.
3. **Capacitor version**: Read `@capacitor/core` version from `package.json`.
4. **Conflicting plugins**: Check if `@capacitor/push-notifications` is in `package.json`. If found, warn the user it must be removed before proceeding:
```bash
npm uninstall @capacitor/push-notifications
```
### Step 2: Set Up Firebase
Check if Firebase is already configured in the project:
- **Android**: Check if `android/app/google-services.json` exists.
- **iOS**: Check if `ios/App/App/GoogleService-Info.plist` exists.
If Firebase is **not** configured for a detected platform, read `references/firebase-setup.md` and guide the user through the Firebase setup for each missing platform.
### Step 3: Install the Plugin
```bash
npm install @capacitor-firebase/messaging firebase
npx cap sync
```
### Step 4: Configure Android
Skip if `android/` does not exist.
Read `references/android-setup.md` and apply the Android-specific configuration.
### Step 5: Configure iOS
Skip if `ios/` does not exist.
Read `references/ios-setup.md` and apply the iOS-specific configuration. This includes APNs key/certificate setup, `AppDelegate.swift` modifications, and enabling capabilities.
### Step 6: Configure Web (if applicable)
If the project targets the web (detected via build tool config or user confirmation):
Read `references/web-setup.md` and apply the Web-specific configuration.
### Step 7: Configure Capacitor Plugin Options
Ask the user if they want to customize iOS foreground notification presentation. If yes, update `capacitor.config.json` or `capacitor.config.ts`:
```json
{
"plugins": {
"FirebaseMessaging": {
"presentationOptions": ["alert", "badge", "sound"]
}
}
}
```
Available options: `badge`, `sound`, `alert`, `criticalAlert`. Default is `["alert", "badge", "sound"]`.
### Step 8: Add Push Notification Code
Read `references/implementation.md` and add the push notification code to the project. Adapt imports and structure to match the user's framework.
The implementation covers:
1. Requesting permissions
2. Retrieving the FCM token
3. Listening for incoming notifications
4. Handling notification taps
### Step 9: Configure Optional Features
Ask the user which optional features to enable:
1. **Topic subscriptions** — Subscribe/unsubscribe to FCM topics (Android/iOS only).
2. **Notification channels** — Create custom Android notification channels (Android SDK 26+ only).
3. **Token refresh listener** — Listen for FCM token changes.
For each selected feature, read `references/implementation.md` and apply the relevant code.
### Step 10: Sync and Test
1. Sync the project:
```bash
npx cap sync
```
2. Read `references/testing.md` and guide the user through sending a test notification via the Firebase Console.
## Error HandlingFrom involvex/syncstuff, MIT.
More from involvex/syncstuff
- 0.437score
capacitor-app-upgrades
involvex
Guides the agent through upgrading a Capacitor app project to a newer major version.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
capacitor-plugins
involvex
Guides the agent through installing, configuring, and using Capacitor plugins from five sources — official Capacitor plugins, Capawesome plugins, Capacitor…
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
capacitor-plugin-upgrades
involvex
Guides the agent through upgrading a Capacitor plugin to a newer major version.
SkillDFreshness: D★ 1Claude Code +9 - 0.434score
cli-mastery
involvex
Interactive training for the GitHub Copilot CLI.
SkillDFreshness: D★ 1Claude Code +9 - 0.434score
chrome-extension-architect
involvex
Privacy-first Chrome Manifest Version 3 extension architect - sidePanel design, MV3 service worker lifecycle, least-privilege permission audits, storage…
SkillDFreshness: D★ 1Claude Code +9 - 0.433score
bun-test
dale
Configure Bun's built-in test runner with Jest-compatible APIs.
SkillDFreshness: D★ 1Claude Code +9 - 0.433score
bun-build
dale
Create optimized production bundles with Bun's native bundler.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
capacitor-plugin-spm-support
involvex
Guides the agent through adding Swift Package Manager (SPM) support to an existing Capacitor plugin.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
bun-init
dale
Initialize a new Bun project with TypeScript and optimal configuration.
SkillDFreshness: D★ 1Claude Code +9 - 0.424score
bun-dev-server
dale
Set up high-performance development servers with Hot Module Replacement.
SkillDFreshness: D★ 1Claude Code +9 - 0.423score
bun-development
involvex
Modern JavaScript/TypeScript development with Bun runtime.
SkillDFreshness: D★ 1Claude Code +9 - 0.410score
Cli-Expert
involvex
Brief description of what this skill does
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 22, 2026 (6 months ago)
- Last release
- Jan 7, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/involvex/syncstuff
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from involvex
- 0.474score
bun-win32
involvex
Win32 FFI binding lifecycle for bun-win32: generate, audit, and release @bun-win32/* packages (Win32 DLL bindings via bun:ffi on Windows).
SkillCFreshness: CClaude Code +9 - 0.437score
capacitor-app-upgrades
involvex
Guides the agent through upgrading a Capacitor app project to a newer major version.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
capacitor-plugins
involvex
Guides the agent through installing, configuring, and using Capacitor plugins from five sources — official Capacitor plugins, Capawesome plugins, Capacitor…
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
capacitor-plugin-upgrades
involvex
Guides the agent through upgrading a Capacitor plugin to a newer major version.
SkillDFreshness: D★ 1Claude Code +9 - 0.434score
cli-mastery
involvex
Interactive training for the GitHub Copilot CLI.
SkillDFreshness: D★ 1Claude Code +9 - 0.434score
chrome-extension-architect
involvex
Privacy-first Chrome Manifest Version 3 extension architect - sidePanel design, MV3 service worker lifecycle, least-privilege permission audits, storage…
SkillDFreshness: D★ 1Claude Code +9
Cite this page
capacitor-push-notifications skill. Agent Mart. https://agentmart.dev/skills/involvex-capacitor-push-notifications (last updated 2026-10-24)