{"id":"5ded8bcb-b2e5-427f-bccd-8aeee17ee27d","shortId":"gudYup","kind":"skill","title":"Push Notifications","tagline":"Swift Ios Skills skill by Dpearson2699","description":"# Push Notifications\n\nImplement, 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.\n\n## Contents\n\n- [Permission Flow](#permission-flow)\n- [APNs Registration](#apns-registration)\n- [Local Notifications](#local-notifications)\n- [Remote Notification Payload](#remote-notification-payload)\n- [Notification Handling](#notification-handling)\n- [Notification Actions and Categories](#notification-actions-and-categories)\n- [Notification Grouping](#notification-grouping)\n- [Common Mistakes](#common-mistakes)\n- [Review Checklist](#review-checklist)\n- [References](#references)\n\n## Permission Flow\n\nRequest notification authorization before doing anything else. The system prompt appears only once; subsequent calls return the stored decision.\n\n```swift\nimport UserNotifications\n\n@MainActor\nfunc requestNotificationPermission() async -> Bool {\n    let center = UNUserNotificationCenter.current()\n    do {\n        let granted = try await center.requestAuthorization(\n            options: [.alert, .sound, .badge]\n        )\n        return granted\n    } catch {\n        print(\"Authorization request failed: \\(error)\")\n        return false\n    }\n}\n```\n\n### Checking Current Status\n\nAlways check status before assuming permissions. The user can change settings at any time.\n\n```swift\n@MainActor\nfunc checkNotificationStatus() async -> UNAuthorizationStatus {\n    let settings = await UNUserNotificationCenter.current().notificationSettings()\n    return settings.authorizationStatus\n    // .notDetermined, .denied, .authorized, .provisional, .ephemeral\n}\n```\n\n### Provisional Notifications\n\nProvisional notifications deliver quietly to the notification center without interrupting the user. The user can then choose to keep or turn them off. Use for onboarding flows where you want to demonstrate value before asking for full permission.\n\n```swift\n// Delivers silently -- no permission prompt shown to the user\ntry await center.requestAuthorization(options: [.alert, .sound, .badge, .provisional])\n```\n\n### Critical Alerts\n\nCritical alerts bypass Do Not Disturb and the mute switch. Requires a special entitlement from Apple (request via developer portal). Use only for health, safety, or security scenarios.\n\n```swift\n// Requires com.apple.developer.usernotifications.critical-alerts entitlement\ntry await center.requestAuthorization(\n    options: [.alert, .sound, .badge, .criticalAlert]\n)\n```\n\n### Handling Denied Permissions\n\nWhen the user has denied notifications, guide them to Settings with `UIApplication.openSettingsURLString`. Do not repeatedly prompt or nag.\n\n## APNs Registration\n\nUse `UIApplicationDelegateAdaptor` to receive the device token in a SwiftUI app. The AppDelegate callbacks are the only way to receive APNs tokens.\n\n```swift\n@main\nstruct MyApp: App {\n    @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate\n\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n    }\n}\n\nclass AppDelegate: NSObject, UIApplicationDelegate {\n    func application(\n        _ application: UIApplication,\n        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil\n    ) -> Bool {\n        UNUserNotificationCenter.current().delegate = NotificationDelegate.shared\n        return true\n    }\n\n    func application(\n        _ application: UIApplication,\n        didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data\n    ) {\n        let token = deviceToken.map { String(format: \"%02x\", $0) }.joined()\n        print(\"APNs token: \\(token)\")\n        // Send token to your server\n        Task { await TokenService.shared.upload(token: token) }\n    }\n\n    func application(\n        _ application: UIApplication,\n        didFailToRegisterForRemoteNotificationsWithError error: Error\n    ) {\n        print(\"APNs registration failed: \\(error.localizedDescription)\")\n        // Simulator always fails -- this is expected during development\n    }\n}\n```\n\n### Registration Order\n\nRequest authorization first, then register for remote notifications. Registration triggers the system to contact APNs and return a device token.\n\n```swift\n@MainActor\nfunc registerForPush() async {\n    let granted = await requestNotificationPermission()\n    guard granted else { return }\n    UIApplication.shared.registerForRemoteNotifications()\n}\n```\n\n### Token Handling\n\nDevice tokens change. Re-send the token to your server every time `didRegisterForRemoteNotificationsWithDeviceToken` fires, not just the first time. The system calls this method on every app launch that calls `registerForRemoteNotifications()`.\n\n## Local Notifications\n\nSchedule notifications directly from the device without a server. Useful for reminders, timers, and location-based alerts.\n\n### Creating Content\n\n```swift\nlet content = UNMutableNotificationContent()\ncontent.title = \"Workout Reminder\"\ncontent.subtitle = \"Time to move\"\ncontent.body = \"You have a scheduled workout in 15 minutes.\"\ncontent.sound = .default\ncontent.badge = 1\ncontent.userInfo = [\"workoutId\": \"abc123\"]\ncontent.threadIdentifier = \"workouts\"  // groups in notification center\n```\n\n### Trigger Types\n\n```swift\n// Fire after a time interval (minimum 60 seconds for repeating)\nlet timeTrigger = UNTimeIntervalNotificationTrigger(timeInterval: 300, repeats: false)\n\n// Fire at a specific date/time\nvar dateComponents = DateComponents()\ndateComponents.hour = 8\ndateComponents.minute = 30\nlet calendarTrigger = UNCalendarNotificationTrigger(\n    dateMatching: dateComponents, repeats: true  // daily at 8:30 AM\n)\n\n// Fire when entering a geographic region\nlet region = CLCircularRegion(\n    center: CLLocationCoordinate2D(latitude: 37.33, longitude: -122.01),\n    radius: 100,\n    identifier: \"gym\"\n)\nregion.notifyOnEntry = true\nregion.notifyOnExit = false\nlet locationTrigger = UNLocationNotificationTrigger(region: region, repeats: false)\n// Requires \"When In Use\" location permission at minimum\n```\n\n### Scheduling and Managing\n\n```swift\nlet request = UNNotificationRequest(\n    identifier: \"workout-reminder-abc123\",\n    content: content,\n    trigger: timeTrigger\n)\n\nlet center = UNUserNotificationCenter.current()\ntry await center.add(request)\n\n// Remove specific pending notifications\ncenter.removePendingNotificationRequests(withIdentifiers: [\"workout-reminder-abc123\"])\n\n// Remove all pending\ncenter.removeAllPendingNotificationRequests()\n\n// Remove delivered notifications from notification center\ncenter.removeDeliveredNotifications(withIdentifiers: [\"workout-reminder-abc123\"])\ncenter.removeAllDeliveredNotifications()\n\n// List all pending requests\nlet pending = await center.pendingNotificationRequests()\n```\n\n## Remote Notification Payload\n\n### Standard APNs Payload\n\n```json\n{\n    \"aps\": {\n        \"alert\": {\n            \"title\": \"New Message\",\n            \"subtitle\": \"From Alice\",\n            \"body\": \"Hey, are you free for lunch?\"\n        },\n        \"badge\": 3,\n        \"sound\": \"default\",\n        \"thread-id\": \"chat-alice\",\n        \"category\": \"MESSAGE_CATEGORY\"\n    },\n    \"messageId\": \"msg-789\",\n    \"senderId\": \"user-alice\"\n}\n```\n\n### Silent / Background Push\n\nSet `content-available: 1` with no alert, sound, or badge. The system wakes the app in the background. Requires the \"Background Modes > Remote notifications\" capability.\n\n```json\n{\n    \"aps\": {\n        \"content-available\": 1\n    },\n    \"updateType\": \"new-data\"\n}\n```\n\nHandle in AppDelegate:\n```swift\nfunc application(\n    _ application: UIApplication,\n    didReceiveRemoteNotification userInfo: [AnyHashable: Any]\n) async -> UIBackgroundFetchResult {\n    guard let updateType = userInfo[\"updateType\"] as? String else {\n        return .noData\n    }\n    do {\n        try await DataSyncService.shared.sync(trigger: updateType)\n        return .newData\n    } catch {\n        return .failed\n    }\n}\n```\n\n### Mutable Content\n\nSet `mutable-content: 1` to allow a Notification Service Extension to modify content before display. Use for downloading images, decrypting content, or adding attachments.\n\n```json\n{\n    \"aps\": {\n        \"alert\": { \"title\": \"Photo\", \"body\": \"Alice sent a photo\" },\n        \"mutable-content\": 1\n    },\n    \"imageUrl\": \"https://example.com/photo.jpg\"\n}\n```\n\n### Localized Notifications\n\nUse localization keys so the notification displays in the user's language:\n\n```json\n{\n    \"aps\": {\n        \"alert\": {\n            \"title-loc-key\": \"NEW_MESSAGE_TITLE\",\n            \"loc-key\": \"NEW_MESSAGE_BODY\",\n            \"loc-args\": [\"Alice\"]\n        }\n    }\n}\n```\n\n## Notification Handling\n\n### UNUserNotificationCenterDelegate\n\nImplement the delegate to control foreground display and handle user taps. Set the delegate as early as possible -- in `application(_:didFinishLaunchingWithOptions:)` or `App.init`.\n\n```swift\n@MainActor\nfinal class NotificationDelegate: NSObject, UNUserNotificationCenterDelegate, Sendable {\n    static let shared = NotificationDelegate()\n\n    // Called when notification arrives while app is in FOREGROUND\n    func userNotificationCenter(\n        _ center: UNUserNotificationCenter,\n        willPresent notification: UNNotification\n    ) async -> UNNotificationPresentationOptions {\n        // Return which presentation elements to show\n        // Without this, foreground notifications are silently suppressed\n        return [.banner, .sound, .badge]\n    }\n\n    // Called when user TAPS the notification\n    func userNotificationCenter(\n        _ center: UNUserNotificationCenter,\n        didReceive response: UNNotificationResponse\n    ) async {\n        let userInfo = response.notification.request.content.userInfo\n        let actionIdentifier = response.actionIdentifier\n\n        switch actionIdentifier {\n        case UNNotificationDefaultActionIdentifier:\n            // User tapped the notification body\n            await handleNotificationTap(userInfo: userInfo)\n        case UNNotificationDismissActionIdentifier:\n            // User dismissed the notification\n            break\n        default:\n            // Custom action button tapped\n            await handleCustomAction(actionIdentifier, userInfo: userInfo)\n        }\n    }\n}\n```\n\n### Deep Linking from Notifications\n\nRoute notification taps to the correct screen using a shared `@Observable` router. The delegate writes a pending destination; the SwiftUI view observes and consumes it.\n\n```swift\n@Observable @MainActor\nfinal class DeepLinkRouter {\n    var pendingDestination: AppDestination?\n}\n\n// In NotificationDelegate:\nfunc handleNotificationTap(userInfo: [AnyHashable: Any]) async {\n    guard let id = userInfo[\"messageId\"] as? String else { return }\n    DeepLinkRouter.shared.pendingDestination = .chat(id: id)\n}\n\n// In SwiftUI -- observe and consume:\n.onChange(of: router.pendingDestination) { _, destination in\n    if let destination {\n        path.append(destination)\n        router.pendingDestination = nil\n    }\n}\n```\n\nSee [references/notification-patterns.md](references/notification-patterns.md) for the full deep-linking handler with tab switching.\n\n## Notification Actions and Categories\n\nDefine interactive actions that appear as buttons on the notification. Register categories at launch.\n\n### Defining Categories and Actions\n\n```swift\nfunc registerNotificationCategories() {\n    let replyAction = UNTextInputNotificationAction(\n        identifier: \"REPLY_ACTION\",\n        title: \"Reply\",\n        options: [],\n        textInputButtonTitle: \"Send\",\n        textInputPlaceholder: \"Type a reply...\"\n    )\n\n    let likeAction = UNNotificationAction(\n        identifier: \"LIKE_ACTION\",\n        title: \"Like\",\n        options: []\n    )\n\n    let deleteAction = UNNotificationAction(\n        identifier: \"DELETE_ACTION\",\n        title: \"Delete\",\n        options: [.destructive, .authenticationRequired]\n    )\n\n    let messageCategory = UNNotificationCategory(\n        identifier: \"MESSAGE_CATEGORY\",\n        actions: [replyAction, likeAction, deleteAction],\n        intentIdentifiers: [],\n        options: [.customDismissAction]  // fires didReceive on dismiss too\n    )\n\n    UNUserNotificationCenter.current().setNotificationCategories([messageCategory])\n}\n```\n\n### Handling Action Responses\n\n```swift\nfunc handleCustomAction(_ identifier: String, userInfo: [AnyHashable: Any]) async {\n    switch identifier {\n    case \"REPLY_ACTION\":\n        // response is UNTextInputNotificationResponse for text input actions\n        break\n    case \"LIKE_ACTION\":\n        guard let messageId = userInfo[\"messageId\"] as? String else { return }\n        await MessageService.shared.likeMessage(id: messageId)\n    case \"DELETE_ACTION\":\n        guard let messageId = userInfo[\"messageId\"] as? String else { return }\n        await MessageService.shared.deleteMessage(id: messageId)\n    default:\n        break\n    }\n}\n```\n\nAction options:\n- `.authenticationRequired` -- device must be unlocked to perform the action\n- `.destructive` -- displayed in red; use for delete/remove actions\n- `.foreground` -- launches the app to the foreground when tapped\n\n## Notification Grouping\n\nGroup related notifications with `threadIdentifier` (or `thread-id` in the APNs payload). Each unique thread becomes a separate group in Notification Center.\n\n```swift\ncontent.threadIdentifier = \"chat-alice\"  // all messages from Alice group together\ncontent.summaryArgument = \"Alice\"\ncontent.summaryArgumentCount = 3         // \"3 more notifications from Alice\"\n```\n\nCustomize the summary format string in the category:\n\n```swift\nlet category = UNNotificationCategory(\n    identifier: \"MESSAGE_CATEGORY\",\n    actions: [replyAction],\n    intentIdentifiers: [],\n    categorySummaryFormat: \"%u more messages from %@\",\n    options: []\n)\n```\n\n## Common Mistakes\n\n**DON'T:** Register for remote notifications before requesting authorization.\n**DO:** Call `requestAuthorization` first, then `registerForRemoteNotifications()`.\n\n**DON'T:** Convert device token with `String(data: deviceToken, encoding: .utf8)`.\n**DO:** Use hex: `deviceToken.map { String(format: \"%02x\", $0) }.joined()`.\n\n**DON'T:** Assume notifications always arrive. APNs is best-effort.\n**DO:** Design features that degrade gracefully; use background refresh as fallback.\n\n**DON'T:** Put sensitive data directly in the notification payload.\n**DO:** Use `mutable-content: 1` with a Notification Service Extension.\n\n**DON'T:** Forget foreground handling. Without `willPresent`, notifications are silently suppressed.\n**DO:** Implement `willPresent` and return `.banner`, `.sound`, `.badge`.\n\n**DON'T:** Set delegate too late or register from SwiftUI views without AppDelegate adaptor.\n**DO:** Set delegate in `App.init`; use `UIApplicationDelegateAdaptor` for APNs.\n\n**DON'T:** Send device token only once — tokens change. Re-send on every callback.\n\n## Review Checklist\n\n- [ ] Authorization requested before registering; denied case handled (Settings link)\n- [ ] Device token converted to hex string (not `String(data:encoding:)`)\n- [ ] `UNUserNotificationCenterDelegate` set in `App.init` or `application(_:didFinishLaunching:)`\n- [ ] Foreground (`willPresent`) and tap (`didReceive`) handling implemented\n- [ ] Categories/actions registered at launch if interactive notifications needed\n- [ ] Silent push configured (Background Modes enabled); `UIApplicationDelegateAdaptor` for APNs\n\n## References\n- [references/notification-patterns.md](references/notification-patterns.md) — AppDelegate setup, APNs callbacks, deep-link router, silent push, debugging\n- [references/rich-notifications.md](references/rich-notifications.md) — Service Extension, Content Extension, attachments, communication notifications","tags":["push","notifications","swift","ios","skills","dpearson2699"],"capabilities":["skill","source-dpearson2699","category-swift-ios-skills"],"categories":["swift-ios-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/dpearson2699/swift-ios-skills/push-notifications","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"install_from":"skills.sh"}},"qualityScore":"0.300","qualityRationale":"deterministic score 0.30 from registry signals: · indexed on skills.sh · published under dpearson2699/swift-ios-skills","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T05:40:37.484Z","embedding":null,"createdAt":"2026-04-18T20:33:26.201Z","updatedAt":"2026-04-22T05:40:37.484Z","lastSeenAt":"2026-04-22T05:40:37.484Z","tsv":"'-122.01':607 '-789':726 '/photo.jpg':849 '0':388,1368 '02x':387,1367 '1':539,738,765,811,845,1407 '100':609 '15':534 '16':51 '26':42 '3':712,1303,1304 '30':580,591 '300':566 '37.33':605 '6.3':45 '60':558 '8':578,590 'abc123':542,642,663,679 'action':35,83,88,999,1097,1102,1117,1126,1141,1150,1162,1178,1193,1200,1204,1220,1236,1246,1254,1324 'actionidentifi':975,978,1004 'ad':830 'adaptor':1445 'alert':147,249,254,256,286,292,513,697,741,834,866 'alic':703,720,730,838,883,1293,1297,1301,1308 'allow':813 'alway':163,417,1374 'anyhash':780,1050,1186 'anyth':115 'ap':696,761,833,865 'apn':24,60,63,317,339,391,412,440,693,1277,1376,1454,1521,1527 'apns-registr':62 'app':329,345,489,749,927,1258 'app.init':909,1450,1494 'appdeleg':331,349,357,772,1444,1525 'appdelegate.self':347 'appdestin':1044 'appear':120,1104 'appl':270 'applic':361,362,376,377,405,406,775,776,906,1496 'arg':882 'arriv':925,1375 'ask':231 'assum':167,1372 'async':135,181,450,782,938,970,1052,1188 'attach':831,1542 'authenticationrequir':1155,1238 'author':112,154,192,427,1343,1472 'avail':737,764 'await':144,185,246,289,400,453,651,687,796,986,1002,1214,1230 'background':732,752,755,1388,1516 'backward':47 'backward-compat':46 'badg':149,251,294,711,744,956,1431 'banner':954,1429 'base':512 'becom':1282 'best':1379 'best-effort':1378 'bodi':351,704,837,879,985 'bool':136,369 'break':996,1201,1235 'button':1000,1106 'bypass':257 'calendartrigg':582 'call':124,484,492,922,957,1345 'callback':332,1469,1528 'capabl':759 'case':979,990,1191,1202,1218,1477 'catch':152,802 'categori':85,90,721,723,1099,1111,1115,1161,1316,1319,1323 'categories/actions':1505 'category-swift-ios-skills' 'categorysummaryformat':1327 'center':138,204,548,602,648,673,933,965,1288 'center.add':652 'center.pendingnotificationrequests':688 'center.removealldeliverednotifications':680 'center.removeallpendingnotificationrequests':667 'center.removedeliverednotifications':674 'center.removependingnotificationrequests':658 'center.requestauthorization':145,247,290 'chang':172,464,1463 'chat':719,1063,1292 'chat-alic':718,1291 'check':160,164 'checklist':102,105,1471 'checknotificationstatus':180 'choos':213 'class':356,913,1040 'clcircularregion':601 'cllocationcoordinate2d':603 'com.apple.developer.usernotifications.critical':285 'common':96,99,1333 'common-mistak':98 'communic':1543 'compat':48 'configur':1515 'consum':1034,1070 'contact':439 'content':54,515,518,643,644,736,763,806,810,820,828,844,1406,1540 'content-avail':735,762 'content.badge':538 'content.body':527 'content.sound':536 'content.subtitle':523 'content.summaryargument':1300 'content.summaryargumentcount':1302 'content.threadidentifier':543,1290 'content.title':520 'content.userinfo':540 'contentview':355 'control':891 'convert':1352,1483 'correct':1016 'cover':25 'creat':514 'critic':253,255 'criticalalert':295 'current':161 'custom':998,1309 'customdismissact':1168 'daili':588 'data':381,769,1357,1396,1489 'datasyncservice.shared.sync':797 'date/time':573 'datecompon':575,576,585 'datecomponents.hour':577 'datecomponents.minute':579 'datematch':584 'debug':14,1535 'decis':128 'decrypt':827 'deep':1007,1090,1530 'deep-link':1089,1529 'deeplinkrout':1041 'deeplinkrouter.shared.pendingdestination':1062 'default':537,714,997,1234 'defin':1100,1114 'degrad':1385 'deleg':371,889,900,1024,1435,1448 'delet':1149,1152,1219 'delete/remove':1253 'deleteact':1146,1165 'deliv':199,236,669 'demonstr':228 'deni':191,297,303,1476 'design':1382 'destin':1028,1074,1078,1080 'destruct':1154,1247 'develop':273,423 'devic':324,444,462,501,1239,1353,1458,1481 'devicetoken':380,1358 'devicetoken.map':384,1364 'didfailtoregisterforremotenotificationswitherror':408 'didfinishlaunch':1497 'didfinishlaunchingwithopt':364,907 'didrec':967,1170,1502 'didreceiveremotenotif':778 'didregisterforremotenotificationswithdevicetoken':379,475 'direct':498,1397 'dismiss':993,1172 'display':822,858,893,1248 'disturb':260 'download':825 'dpearson2699':8 'earli':902 'effort':1380 'element':943 'els':116,457,791,1060,1212,1228 'enabl':1518 'encod':1359,1490 'enter':595 'entitl':268,287 'ephemer':194 'error':157,409,410 'error.localizeddescription':415 'everi':473,488,1468 'example.com':848 'example.com/photo.jpg':847 'expect':421 'extens':817,1412,1539,1541 'fail':156,414,418,804 'fallback':1391 'fals':159,568,615,622 'featur':1383 'final':912,1039 'fire':476,552,569,593,1169 'first':428,480,1347 'flow':27,56,59,109,223 'foreground':32,892,930,948,1255,1261,1416,1498 'forget':1415 'format':386,1312,1366 'free':708 'full':233,1088 'func':133,179,360,375,404,448,774,931,963,1047,1119,1181 'geograph':597 'grace':1386 'grant':142,151,452,456 'group':36,92,95,545,1265,1266,1285,1298 'guard':455,784,1053,1205,1221 'guid':305 'gym':611 'handl':33,78,81,296,461,770,885,895,1177,1417,1478,1503 'handlecustomact':1003,1182 'handlenotificationtap':987,1048 'handler':1092 'health':278 'hex':1363,1485 'hey':705 'id':717,1055,1064,1065,1216,1232,1274 'identifi':610,638,1124,1139,1148,1159,1183,1190,1321 'imag':826 'imageurl':846 'implement':11,887,1425,1504 'import':130 'input':1199 'intentidentifi':1166,1326 'interact':1101,1510 'interrupt':206 'interv':556 'io':4,41,50 'ios/macos':20 'join':389,1369 'json':695,760,832,864 'keep':215 'key':854,870,876 'languag':863 'late':1437 'latitud':604 'launch':490,1113,1256,1508 'launchopt':365 'let':137,141,183,382,451,517,562,581,599,616,635,647,685,785,919,971,974,1054,1077,1121,1136,1145,1156,1206,1222,1318 'like':1140,1143,1203 'likeact':1137,1164 'link':1008,1091,1480,1531 'list':681 'loc':869,875,881 'loc-arg':880 'loc-key':874 'local':15,65,68,494,850,853 'local-notif':67 'locat':511,627 'location-bas':510 'locationtrigg':617 'longitud':606 'lunch':710 'main':342 'mainactor':132,178,447,911,1038 'manag':633 'messag':700,722,872,878,1160,1295,1322,1330 'messagecategori':1157,1176 'messageid':724,1057,1207,1209,1217,1223,1225,1233 'messageservice.shared.deletemessage':1231 'messageservice.shared.likemessage':1215 'method':486 'minimum':557,630 'minut':535 'mistak':97,100,1334 'mode':756,1517 'modifi':819 'move':526 'msg':725 'must':1240 'mutabl':805,809,843,1405 'mutable-cont':808,842,1404 'mute':263 'myapp':344 'nag':316 'need':1512 'new':699,768,871,877 'new-data':767 'newdata':801 'nil':368,1082 'nodata':793 'notdetermin':190 'note':53 'notif':2,10,18,34,39,66,69,71,75,77,80,82,87,91,94,111,196,198,203,304,433,495,497,547,657,670,672,690,758,815,851,857,884,924,936,949,962,984,995,1010,1012,1096,1109,1264,1268,1287,1306,1340,1373,1400,1410,1420,1511,1544 'notification-actions-and-categori':86 'notification-group':93 'notification-handl':79 'notificationdeleg':914,921,1046 'notificationdelegate.shared':372 'notificationset':187 'nsobject':358,915 'observ':1021,1032,1037,1068 'onboard':222 'onchang':1071 'option':146,248,291,1129,1144,1153,1167,1237,1332 'order':425 'path.append':1079 'payload':30,72,76,691,694,1278,1401 'pend':656,666,683,686,1027 'pendingdestin':1043 'perform':1244 'permiss':26,55,58,108,168,234,239,298,628 'permission-flow':57 'photo':836,841 'portal':274 'possibl':904 'present':942 'print':153,390,411 'prompt':119,240,314 'provision':193,195,197,252 'push':1,9,733,1514,1534 'put':1394 'quiet':200 'radius':608 're':466,1465 're-send':465,1464 'receiv':322,338 'red':1250 'refer':106,107,1522 'references/notification-patterns.md':1084,1085,1523,1524 'references/rich-notifications.md':1536,1537 'refresh':1389 'region':598,600,619,620 'region.notifyonentry':612 'region.notifyonexit':614 'regist':430,1110,1337,1439,1475,1506 'registerforpush':449 'registerforremotenotif':493,1349 'registernotificationcategori':1120 'registr':29,61,64,318,413,424,434 'relat':1267 'remind':507,522,641,662,678 'remot':17,70,74,432,689,757,1339 'remote-notification-payload':73 'remov':654,664,668 'repeat':313,561,567,586,621 'repli':1125,1128,1135,1192 'replyact':1122,1163,1325 'request':110,155,271,426,636,653,684,1342,1473 'requestauthor':1346 'requestnotificationpermiss':134,454 'requir':265,284,623,753 'respons':968,1179,1194 'response.actionidentifier':976 'response.notification.request.content.userinfo':973 'return':125,150,158,188,373,442,458,792,800,803,940,953,1061,1213,1229,1428 'review':12,101,104,1470 'review-checklist':103 'rich':38 'rout':1011 'router':1022,1532 'router.pendingdestination':1073,1081 'safeti':279 'scenario':282 'scene':353 'schedul':496,531,631 'screen':1017 'second':559 'secur':281 'see':1083 'send':394,467,1131,1457,1466 'sendabl':917 'senderid':727 'sensit':1395 'sent':839 'separ':1284 'server':398,472,504 'servic':816,1411,1538 'set':173,184,308,734,807,898,1434,1447,1479,1492 'setnotificationcategori':1175 'settings.authorizationstatus':189 'setup':1526 'share':920,1020 'show':945 'shown':241 'silent':237,731,951,1422,1513,1533 'simul':416 'skill':5,6 'sound':148,250,293,713,742,955,1430 'source-dpearson2699' 'special':267 'specif':572,655 'standard':692 'static':918 'status':162,165 'store':127 'string':385,790,1059,1184,1211,1227,1313,1356,1365,1486,1488 'struct':343 'structur':31 'subsequ':123 'subtitl':701 'summari':1311 'suppress':952,1423 'swift':3,44,129,177,235,283,341,446,516,551,634,773,910,1036,1118,1180,1289,1317 'swiftui':328,1030,1067,1441 'switch':264,977,1095,1189 'system':118,437,483,746 'tab':1094 'tap':897,960,982,1001,1013,1263,1501 'target':40 'task':399 'text':1198 'textinputbuttontitl':1130 'textinputplacehold':1132 'thread':716,1273,1281 'thread-id':715,1272 'threadidentifi':1270 'time':176,474,481,524,555 'timeinterv':565 'timer':508 'timetrigg':563,646 'titl':698,835,868,873,1127,1142,1151 'title-loc-key':867 'togeth':1299 'token':28,325,340,383,392,393,395,402,403,445,460,463,469,1354,1459,1462,1482 'tokenservice.shared.upload':401 'tri':143,245,288,650,795 'trigger':435,549,645,798 'true':374,587,613 'turn':217 'type':550,1133 'u':1328 'uiapplic':363,378,407,777 'uiapplication.launchoptionskey':366 'uiapplication.opensettingsurlstring':310 'uiapplication.shared.registerforremotenotifications':459 'uiapplicationdeleg':359 'uiapplicationdelegateadaptor':320,346,1452,1519 'uibackgroundfetchresult':783 'unauthorizationstatus':182 'uncalendarnotificationtrigg':583 'uniqu':1280 'unless':52 'unlocationnotificationtrigg':618 'unlock':1242 'unmutablenotificationcont':519 'unnotif':937 'unnotificationact':1138,1147 'unnotificationcategori':1158,1320 'unnotificationdefaultactionidentifi':980 'unnotificationdismissactionidentifi':991 'unnotificationpresentationopt':939 'unnotificationrequest':637 'unnotificationrespons':969 'untextinputnotificationact':1123 'untextinputnotificationrespons':1196 'untimeintervalnotificationtrigg':564 'unusernotificationcent':934,966 'unusernotificationcenter.current':139,186,370,649,1174 'unusernotificationcenterdeleg':886,916,1491 'updatetyp':766,786,788,799 'use':21,220,275,319,505,626,823,852,1018,1251,1362,1387,1403,1451 'user':170,208,210,244,301,729,861,896,959,981,992 'user-alic':728 'userinfo':779,787,972,988,989,1005,1006,1049,1056,1185,1208,1224 'usernotif':22,131 'usernotificationcent':932,964 'utf8':1360 'valu':229 'var':348,350,574,1042 'via':272 'view':1031,1442 'wake':747 'want':226 'way':336 'willpres':935,1419,1426,1499 'windowgroup':354 'withidentifi':659,675 'without':205,502,946,1418,1443 'workout':521,532,544,640,661,677 'workout-reminder-abc123':639,660,676 'workoutid':541 'write':1025","prices":[{"id":"30865e98-0867-44f2-88f2-fc40e4e64d7b","listingId":"5ded8bcb-b2e5-427f-bccd-8aeee17ee27d","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"dpearson2699","category":"swift-ios-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T20:33:26.201Z"}],"sources":[{"listingId":"5ded8bcb-b2e5-427f-bccd-8aeee17ee27d","source":"github","sourceId":"dpearson2699/swift-ios-skills/push-notifications","sourceUrl":"https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/push-notifications","isPrimary":false,"firstSeenAt":"2026-04-18T22:01:12.583Z","lastSeenAt":"2026-04-22T00:53:44.252Z"},{"listingId":"5ded8bcb-b2e5-427f-bccd-8aeee17ee27d","source":"skills_sh","sourceId":"dpearson2699/swift-ios-skills/push-notifications","sourceUrl":"https://skills.sh/dpearson2699/swift-ios-skills/push-notifications","isPrimary":true,"firstSeenAt":"2026-04-18T20:33:26.201Z","lastSeenAt":"2026-04-22T05:40:37.484Z"}],"details":{"listingId":"5ded8bcb-b2e5-427f-bccd-8aeee17ee27d","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"dpearson2699","slug":"push-notifications","source":"skills_sh","category":"swift-ios-skills","skills_sh_url":"https://skills.sh/dpearson2699/swift-ios-skills/push-notifications"},"updatedAt":"2026-04-22T05:40:37.484Z"}}