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.2, backward-compatible to iOS 16 unless noted.
Request notification authorization before doing anything else. The system prompt appears only once; subsequent calls return the stored decision.
Always check status before assuming permissions. The user can change settings at any time.
iOS/macOS 앱에서 로컬 알림, 원격(APN) 알림, 다양한 알림, 알림 작업, 자동 푸시 및 알림 서비스/콘텐츠 확장 등 푸시 알림을 구현, 검토 또는 디버그합니다. UNUserNotificationCenter 작업, 원격 알림 등록, 알림 페이로드 처리, 알림 범주 및 작업 설정, 풍부한 알림 콘텐츠 생성 또는 알림 전달 디버깅 시 사용합니다. Swift 앱의 경고, 배지, 소리, 백그라운드 푸시 또는 사용자 알림 권한과 관련된 모든 작업을 트리거합니다. 출처: dpearson2699/swift-ios-skills.