secondsky avatar

Push Notification Setup

Solid starting point for implementing push notifications across iOS, Android, and web with Firebase Cloud Messaging. Covers the essentials: permission requests, token management, foreground and background message handling, and platform-specific setup code for React Native, Swift, and Kotlin. The examples are straightforward and show you exactly where FCM integration fits into each platform's lifecycle. What's helpful here is seeing the token refresh handling and notification channel setup side by side, since those are easy to miss on first implementation. It won't walk you through server-side setup or advanced features like notification grouping, but it gets the client-side foundations in place quickly.

skills.sh installs
436
GitHub stars
248
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from secondsky/claude-skills

All 146
1solana-foundation avatarpaysolana-foundation/payUser-authorized paid HTTP/API access for agents through local Pay MCP and TouchID gated payments (x402 MPP HTTP 402) SERVICES: search web, scrape, enrich people436skills.sh installs
2pedronauck avatarcontext7pedronauck/skillsRetrieves authoritative, up-to-date technical documentation, API references, configuration details, and code examples for any developer technology. Use this ski435skills.sh installs
3maxnorm avatarmagento-performance-analystmaxnorm/magento2-agent-skillsConducts comprehensive Magento 2 performance analysis and optimization. Use when analyzing performance bottlenecks, profiling applications, optimizing database 434skills.sh installs
4pedronauck avatarelectron-builderpedronauck/skillsComprehensive guide for electron-builder (v26.x) packaging, code signing, auto-updates, and release workflows. Use when: (1) configuring electron-builder builds433skills.sh installs
5jezweb avatargoogle-workspacejezweb/claude-skillsBuild integrations with Google Workspace APIs (Gmail, Calendar, Drive, Sheets, Docs, Chat, Meet, Forms, Tasks, Admin SDK). Covers OAuth 2.0, service accounts, r428skills.sh installs
6kernel avatarkernel-typescript-sdkkernel/skillsBuild Kernel browser automation in TypeScript with server-side Playwright or CDP, including profiles, proxies, and reliable session cleanup.425skills.sh installs