UI はローカライズ済みです。スキルの紹介と説明文書は選択した言語へ AI が自動翻訳し、コード・コマンド・パス・専門用語は原文のままです。原作者の文書が優先されます。
スキルを探す
生産性・共同作業 · SKILL.md

ios-notifications

ios-notifications

Push notifications for iOS using UserNotifications framework and APNS. Use when integrating APNS push notifications in iOS applications.

Independent GitHub snapshot · Automated classification · Original documentation governs

スキルの説明

GitHub

name: ios-notifications description: Push notifications for iOS using UserNotifications framework and APNS. Use when integrating APNS push notifications in iOS applications. metadata: triggers: files: - '/Notification.swift' - '/*AppDelegate.swift' keywords: - UNUserNotificationCenter - APNS - UNNotificationRequest - deviceToken

iOS Notifications

Priority: P2 (MEDIUM)

Guidelines

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

See APNs registration and permission examples

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

Canonical response anchors

When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:

  • Framework
  • Permissions

Remediation anchors

  • Remediation anchors: UNUserNotificationCenterDelegate, .alert, .badge, .sound
保存したスキル