aj-geddes avatar

Push Notification Setup

Sets up push notifications across iOS and Android using Firebase Cloud Messaging and native platform services. You'll use this when building user engagement features, handling real-time alerts, or implementing deep linking from notifications. The guides cover React Native, Flutter, Swift, and Kotlin implementations with token management and refresh handling baked in. The best practices section is actually useful here, the DO/DON'T list around permission handling and avoiding notification spam reflects real production experience. Good coverage of the full notification lifecycle including background handlers and different app states, which is where most implementations break.

skills.sh installs
580
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill push-notification-setup --agent claude-code

Installs into .claude/skills of the current project.

Files

Push Notification Setup

Table of Contents

Overview

Implement comprehensive push notification systems for iOS and Android applications using Firebase Cloud Messaging and native platform services.

When to Use

  • Sending real-time notifications to users
  • Implementing user engagement features
  • Deep linking from notifications to specific screens
  • Handling silent/background notifications
  • Tracking notification analytics

Quick Start

Minimal working example:

import messaging from "@react-native-firebase/messaging";
import { Platform } from "react-native";

export async function initializeFirebase() {
  try {
    if (Platform.OS === "ios") {
      const permission = await messaging().requestPermission();
      if (permission === messaging.AuthorizationStatus.AUTHORIZED) {
        console.log("iOS notification permission granted");
      }
    }

    const token = await messaging().getToken();
    console.log("FCM Token:", token);
    await saveTokenToBackend(token);

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, AI & Agent Building, Cloud & Infrastructure, Mobile Development, Databases
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1mvanhorn avatarpp-wikipediamvanhorn/printing-press-libraryPrinting Press CLI for Wikipedia. Wikipedia REST API. Get article summaries, search, browse related topics, and access on-this-day events. No...577skills.sh installs
2manutej avatarexpressjs-developmentmanutej/luxor-claude-marketplaceComprehensive Express.js development skill covering routing, middleware, request/response handling, error handling, and building production-ready REST APIs562skills.sh installs
3sanjay3290 avatargoogle-docssanjay3290/ai-skillsInteract with Google Docs - create documents, search by title, read content, and edit text. Use when user asks to: create a Google Doc, find a document, read do561skills.sh installs
4aaronontheweb avatarplaywright-blazor-testingaaronontheweb/dotnet-skillsWrite UI tests for Blazor applications (Server or WebAssembly) using Playwright. Covers navigation, interaction, authentication, selectors, and common Blazor-sp560skills.sh installs
5get-convex avatarfunction-creatorget-convex/agent-skillsCreate Convex queries, mutations, and actions with proper validation, authentication, and error handling. Use when implementing new API endpoints.560skills.sh installs
6jezweb avatarwordpress-plugin-corejezweb/claude-skillsBuild secure WordPress plugins with hooks, database interactions, Settings API, custom post types, and REST API. Covers Simple, OOP, and PSR-4 architecture patt560skills.sh installs