Skip to content
secondsky avatar

Push Notification Setup

Cross-platform push notification setup covering iOS, Android, and React Native via Firebase Cloud Messaging.

CCM score
50 of 100
skills.sh installs
446
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers permission requests, device token retrieval and refresh, and foreground and background message handling
  • Includes working code for React Native (@react-native-firebase/messaging), native iOS (Swift), and Android (Kotlin FirebaseMessagingService)
  • Provides notification channel setup on Android and a checklist covering deep linking, payload contents, and real-device testing
  • Designed for mobile teams adding notification capabilities or handling background messages across platforms

Install

$ npx -y skills add secondsky/claude-skills --skill push-notification-setup -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Push Notification Setup

Implement push notifications across mobile and web platforms.

Firebase Cloud Messaging (React Native)

import messaging from '@react-native-firebase/messaging';

// Request permission
async function requestPermission() {
  const status = await messaging().requestPermission();
  if (status === messaging.AuthorizationStatus.AUTHORIZED) {
    const token = await messaging().getToken();
    await sendTokenToServer(token);
  }
}

// Handle foreground messages
messaging().onMessage(async message => {
  console.log('Foreground message:', message);
  showLocalNotification(message);
});

// Handle background/quit messages
messaging().setBackgroundMessageHandler(async message => {
  console.log('Background message:', message);
});

// Handle token refresh
messaging().onTokenRefresh(token => {
  sendTokenToServer(token);
});

iOS Native (Swift)

import UserNotifications

Details

Repository
github.com/secondsky/claude-skills
Categories
Mobile Apps, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the push-notification-setup skill do?

push-notification-setup implements push notifications across iOS, Android, and web using Firebase Cloud Messaging and native services. It covers requesting permission, handling foreground and background messages, handling token refresh, and setting up notification channels on Android.

How do I install push-notification-setup in my project?

Run npx -y skills add secondsky/claude-skills --skill push-notification-setup -y inside your project. After that, push-notification-setup gives your agent the React Native, Swift and Kotlin patterns for push notifications.

Which Mobile Apps skills sit alongside push-notification-setup?

push-notification-setup sits in the Mobile Apps category, which is led by vercel-react-native-skills, animate-expo, write-swift, firebase-crashlytics and xcode-project-setup. Its own focus is the notification side of a mobile app: permissions, tokens and message handlers.

Does push-notification-setup cover Android notification channels?

Yes, push-notification-setup lists supporting notification channels on Android as a best practice and includes a Kotlin example that builds a notification on a channel. It also shows a FirebaseMessagingService that handles new tokens and incoming messages.

More from secondsky/claude-skills

All 116

Similar to Push Notification Setup

More Mobile Apps