Covers the full notification stack for iOS and macOS, from requesting permissions and registering device tokens to scheduling local notifications, handling remote APNs payloads, and setting up notification actions and categories. The source walks through the permission flow (including provisional and critical alerts), shows how to wire up AppDelegate in SwiftUI to receive tokens, explains trigger types for local notifications (time, calendar, location), and includes payload structures for remote pushes. Helpful if you're implementing notifications from scratch or debugging why tokens aren't registering or notifications aren't appearing. The common mistakes section and review checklist are worth reading even if you've shipped notification code before.

skills.sh installs
4.4K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill push-notifications --agent claude-code

Installs into .claude/skills of the current project.

Files

Push Notifications

Implement, review, and debug local and remote notifications on iOS/macOS using UserNotifications and APNs. Covers permission flow, token registration, payload structure, foreground handling, notification actions, grouping, and rich notifications. Targets iOS 26+ with Swift 6.3, backward-compatible to iOS 16 unless noted.

Keep adjacent domains separate: Live Activity content-state payloads belong in activitykit; PushKit/VoIP call pushes belong in callkit; App Clip ephemeral notification setup belongs in app-clips; long-running or scheduled background work after a silent push belongs in background-processing.

Contents

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Git & Pull Requests, Code Review & Quality, Debugging, Mobile Development
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1dpearson2699 avatarswiftui-liquid-glassdpearson2699/swift-ios-skillsImplement, review, or improve SwiftUI Liquid Glass effects for iOS 26+. Covers glassEffect modifier, GlassEffectContainer, glass button styles, glass toolbar/ta4.3Kskills.sh installs
2bencium avatardesign-auditbencium/bencium-marketplacePremium UI/UX design audit and refinement skill. Conducts systematic visual audits of existing apps and produces phased, implementation-ready design plans. Use 4.3Kskills.sh installs
3dpearson2699 avatarswiftdatadpearson2699/swift-ios-skillsImplement, review, or improve data persistence using SwiftData. Use when defining @Model classes with @Attribute, @Relationship, @Transient, #Unique, or #Index;4.3Kskills.sh installs
4getsentry avatarsentry-create-alertgetsentry/sentry-for-aiCreate Sentry alerts using the workflow engine API. Use when asked to create alerts, set up notifications, configure issue priority alerts, or build workflow au4.2Kskills.sh installs
5zc277584121 avatarremove-ai-stylezc277584121/marketing-skillsReview and rewrite Chinese or English prose to reduce AI-generated patterns. Use for de-AI polishing, natural-language rewrites, robotic or formulaic writing, a4.2Kskills.sh installs
6actionbook avatarcoding-guidelinesactionbook/rust-skillsUse when asking about Rust code style or best practices. Keywords: naming, formatting, comment, clippy, rustfmt, lint, code style, best practice, P.NAM, G.FMT, 4.2Kskills.sh installs