push-notification-setup

aj-geddes/useful-ai-prompts · updated Apr 8, 2026

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill push-notification-setup
0 commentsdiscussion
summary

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

skill.md

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);

    messaging().onTokenRefresh(async (newToken) => {
      await saveTokenToBackend(newToken);
    });

    messaging().onMessage(async (remoteMessage) => {
      console.log("Notification received:", remoteMessage);
      showLocalNotification(remoteMessage);
    });

// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

Guide Contents
Firebase Cloud Messaging Setup Firebase Cloud Messaging Setup
iOS Native Setup with Swift iOS Native Setup with Swift
Android Setup with Kotlin Android Setup with Kotlin
Flutter Implementation Flutter Implementation

Best Practices

✅ DO

  • Request permission before sending notifications
  • Implement token refresh handling
  • Use different notification channels by priority
  • Validate tokens regularly
  • Track notification delivery
  • Implement deep linking
  • Handle notifications in all app states
  • Use silent notifications for data sync
  • Store tokens securely on backend
  • Provide user notification preferences
  • Test on real devices

❌ DON'T

  • Send excessive notifications
  • Send without permission
  • Store tokens insecurely
  • Ignore notification failures
  • Send sensitive data in payload
  • Use notifications for spam
  • Forget to handle background notifications
  • Make blocking calls in handlers
  • Send duplicate notifications
  • Ignore user preferences

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.629 reviews
  • Aisha Jackson· Dec 20, 2024

    Registry listing for push-notification-setup matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Kiara Chen· Dec 12, 2024

    push-notification-setup fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Chaitanya Patil· Dec 4, 2024

    I recommend push-notification-setup for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Piyush G· Nov 23, 2024

    Solid pick for teams standardizing on skills: push-notification-setup is focused, and the summary matches what you get after install.

  • Hassan Khanna· Nov 11, 2024

    push-notification-setup reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Shikha Mishra· Oct 14, 2024

    push-notification-setup is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Diego Chen· Oct 2, 2024

    We added push-notification-setup from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Yash Thakker· Sep 21, 2024

    push-notification-setup reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Kofi Gupta· Sep 5, 2024

    push-notification-setup is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Mia Patel· Aug 24, 2024

    Solid pick for teams standardizing on skills: push-notification-setup is focused, and the summary matches what you get after install.

showing 1-10 of 29

1 / 3