app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Generate push notification infrastructure with APNs registration, handling, and rich notifications. Use when adding push notifications, configuring APNs, notification categories/actions, or rich notifications with images and custom UI.
Claude Code
$ npx -y skills add rshankras/claude-code-apple-skills --skill push-notifications --agent claude-code
Codex
$ npx skills add rshankras/claude-code-apple-skills --skill push-notifications -a codex -y
Cursor
$ npx skills add rshankras/claude-code-apple-skills --skill push-notifications -a cursor -y
Gemini CLI
$ npx skills add rshankras/claude-code-apple-skills --skill push-notifications -a gemini-cli -y
GitHub Copilot
$ npx skills add rshankras/claude-code-apple-skills --skill push-notifications -a github-copilot -y
OpenCode
$ npx skills add rshankras/claude-code-apple-skills --skill push-notifications -a opencode -y
Windsurf
$ npx skills add rshankras/claude-code-apple-skills --skill push-notifications -a windsurf -y
name: push-notifications description: Generate push notification infrastructure with APNs registration, handling, and rich notifications. Use when adding push notifications, configuring APNs, notification categories/actions, or rich notifications with images and custom UI. allowed-tools: [Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion] last_verified: 2026-07-16 review_by: 2027-06-22 os_version: iOS 27 / macOS 27
Generate push notification infrastructure with APNs registration, handling, and rich notifications.
Before generating, verify:
1. **Existing Notification Code**
# Check for existing notification handling grep -r "UNUserNotificationCenter\|registerForRemoteNotifications" --include="*.swift" | head -5
2. **Entitlements**
# Check for push notification entitlement
find . -name "*.entitlements" -exec grep -l "aps-environment" {} \;3. **App Delegate or SwiftUI App**
# Determine app structure grep -r "@main\|UIApplicationDelegate" --include="*.swift" | head -5
Sources/Notifications/ ├── NotificationManager.swift # Central notification management ├── NotificationDelegate.swift # UNUserNotificationCenterDelegate ├── NotificationCategories.swift # Action categories definition └── NotificationPayload.swift # Type-safe payload parsing
NotificationServiceExtension/ ├── NotificationService.swift # Modify notifications before display └── Info.plist # Extension configuration
NotificationContentExtension/ ├── NotificationViewController.swift # Custom notification UI ├── MainInterface.storyboard └── Info.plist
@MainActor
final class NotificationManager {
static let shared = NotificationManager()
func requestAuthorization() async throws -> Bool {
let center = UNUserNotificationCenter.current()
let options: UNAuthorizationOptions = [.alert, .badge, .sound]
return try await center.requestAuthorization(options: options)
}
func registerForRemoteNotifications() {
UIApplication.shared.registerForRemoteNotifications()
}
}// Foreground notification
func userNotificationCenter(
_ center: UNUserNotificationCenter,
willPresent notification: UNNotification
) async -> UNNotificationPresentationOptions {
return [.banner, .sound, .badge]
}
// Notification tap/action
func userNotificationCenter(
_ center: UNUserNotificationCenter,
didReceive response: UNNotificationResponse
) async {
let userInfo = response.notification.request.content.userInfo
await handleNotificationAction(response.actionIdentifier, userInfo: userInfo)
}enum NotificationCategory: String {
case message = "MESSAGE_CATEGORY"
case reminder = "REMINDER_CATEGORY"
var actions: [UNNotificationAction] {
switch self {
case .message:
return [
UNNotificationAction(identifier: "REPLY", title: "Reply", options: []),
UNNotificationAction(identifier: "MARK_READ", title: "Mark as Read", options: [])
]
case .reminder:
return [
UNNotificationAction(identifier: "COMPLETE", title: "Complete", options: []),
UNNotificationAction(identifier: "SNOOZE", title: "Snooze", options: [])
]
}
}
}"Interrupting people is a real privilege… a trust relationship." Design the strategy before the infrastructure:
| Decision | Rule | |----------|------| | Authorization | Use **provisional authorization** (add `.provisional` to the options — delivered quietly to Notification Center, no prompt) for passive content like likes and comments; reserve the explicit prompt for **time-critical** content | | When to prompt | **Never at first launch.** Explain the value first, then ask at a contextually meaningful moment — right after the order is placed, not before the user has ordered | | Content bar | Every notification carries a **specific message or a completable task** — never an empty "open the app" nudge | | Timing | Deliver at relevant times; use time- and location-based delivery where it fits | | Settings | Offer **granular per-topic toggles in-app**, and add `.providesAppNotificationSettings` so "Manage" in system settings deep-links to your page | | Grouping | App-level grouping is the default; set `threadIdentifier` **only for meaningfully different streams** (conversations, distinct sources) — over-threading recreates the clutter grouping was meant to fix | | Rich content | A rich notification is a **self-contained package**: image/video plus actions that complete the task without launching the app | | Fatigue | **Pause notification types a user repeatedly ignores** (the Duolingo pattern) — silence beats an uninstall |
1. Select project target 2. Signing & Capabilities tab 3. Add "Push Notifications"
A collection of Claude Code skills for iOS, macOS, watchOS, visionOS, and Apple platform development. These skills help you plan and build apps, maintain code quality, ensure HIG compliance, and guide you from idea to App Store.
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution,…
Generate compelling App Store descriptions that convert browsers into users. Use when writing initial descriptions, improving…
Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budget planning, and ROAS…
Take a one-time in-app purchase from MISSING_METADATA to READY_TO_SUBMIT in App Store Connect — set its price schedule and…
Optimize app title, subtitle, and keywords for maximum App Store discoverability. Use when launching a new app, improving search…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.