push-notifications

Implement and debug iOS and macOS push notification flows with UserNotifications APIs.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/DFly7/iOS-FastAPI-Supabase-AI --skill push-notifications-dfly7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: push-notifications
Source: https://github.com/DFly7/iOS-FastAPI-Supabase-AI/tree/main/.agents/skills/push-notifications
Command: npx skills add https://github.com/DFly7/iOS-FastAPI-Supabase-AI --skill push-notifications-dfly7

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill consolidates best practices and debugging guidance for implementing local and remote push notifications on iOS and macOS, reducing integration errors, missed deliveries, and permission regressions.

Core Features & Use Cases

  • Permission flow and entitlement checks: how to request authorization, use provisional and critical alerts, and handle denied permissions.
  • APNs registration and token management: proper use of AppDelegate or UIApplicationDelegateAdaptor, converting device tokens to hex, and reliably uploading tokens to backend services.
  • Local and remote payloads: constructing aps payloads, silent/background pushes, mutable-content for service extensions, and localization keys.
  • Notification handling and deep linking: UNUserNotificationCenterDelegate usage for foreground presentation and tap routing, plus patterns for a DeepLinkRouter to navigate app UI.
  • Rich notifications and extensions: Notification Service and Content extensions, attachments, decryption, App Groups, and memory/time constraints.
  • Testing and debugging: simulator limitations, simctl push, Console.app diagnostics, APNs response handling, and common reasons deliveries fail.
  • Real-world example: integrate chat message pushes with image attachments, deep-link taps into a conversation view, and fallback to background sync if delivery fails.

Quick Start

Request authorization, register for remote notifications, and upload the hex-formatted device token to your server.

Frequently Asked Questions about push-notifications

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do silent push notifications work on iOS using the aps payload?

Silent push notifications require the content-available field in your aps payload and enabling Background Modes with the remote-notification capability. Handle these background pushes in your AppDelegate to trigger background sync operations.

How do I implement notification service extensions for mutable-content rich notifications?

Notification service extensions intercept remote payloads with the mutable-content flag to download attachments or decrypt content before display. You must manage App Groups for shared data and respect strict memory and time limits within the extension.

Why are my iOS push notifications not being delivered and how do I debug them?

Debug push notification delivery failures using Console.app diagnostics, simctl push for simulator testing, and checking APNs response handling. Common delivery failures stem from incorrect aps payload fields, missing push entitlements, or denied permissions.

Can I test push notifications in the iOS simulator?

You can test push notifications in the iOS simulator using the simctl push command to send payloads. Be aware of simulator limitations when debugging notification service extensions, deep linking, and APNs registration flows.

How do I handle foreground push notification taps and route deep links in Swift?

Handle foreground push notification presentation and tap routing by implementing UNUserNotificationCenterDelegate. Use a DeepLinkRouter pattern to navigate app UI based on the notification payload, routing users directly into specific views like conversations.