IOS Notifications

Push notifications for iOS using UserNotifications framework and APNS. Use when integrating APNS push notifications in iOS applications. (triggers: **/*Notification*.swift, **/*AppDelegate.swift, UNUserNotificationCenter, APNS, UNNotificationRequest, deviceToken)

ComeOnOliver Updated 61 repo stars

File contents

iOS Notifications

Priority: P2 (OPTIONAL)

Push notifications using UserNotifications framework and APNs.

Guidelines

  • Framework: Use UserNotifications for all notification handling.
  • Delegate: Implement UNUserNotificationCenterDelegate for foreground & tap handling.
  • Permissions: Request .alert, .badge, .sound after priming the user.
  • APNs: Register for remote notifications in AppDelegate.
  • Badges: Manage app icon badges manually (set to 0 to clear).

Anti-Patterns

  • No Unconditional Requests: Explain value proposition before system dialog.
  • No Missing Delegate: Notifications won't trigger foreground callbacks without it.
  • No Forgotten Badge Clear: User frustration increases if badges persist.

References

  • Implementation Details

ComeOnOliver/skillshub/tree/main/skills/HoangNguyen0403/agent-skills-standard/ios-notifications commit 35583bbaed

Frequently asked questions

npx skillmds@latest add comeonoliver/ios-notifications