axiom-push-notifications
БесплатноБез исполняемых скриптовНе проверенUse when implementing remote or local push notifications, requesting notification permission, managing APNs device tokens, adding notification…
от ComeOnOliver★ 67 звёзд на GitHubОб этом скилле
Push Notifications
Remote and local notification patterns for iOS. Covers permission flow, APNs registration, token management, payload design, actionable notifications, rich notifications with service extensions, communication notifications, Focus interaction, and Live Activity push transport.
When to Use This Skill
Use when you need to:
- ☑ Implementing remote (APNs) push notifications
- ☑ Requesting notification permissions
- ☑ Managing device tokens and server sync
- ☑ Adding actionable notifications with categories/actions
- ☑ Building rich notifications with service extensions
- ☑ Communication notifications with avatars (iOS 15+)
- ☑ Time Sensitive or Critical alerts
- ☑ Updating Live Activities via push (transport layer)
- ☑ Broadcast push for large audiences (iOS 18+)
- ☑ Local notification scheduling
Example Prompts
"How do I set up push notifications?" "When should I ask for notification permission?" "My push notifications aren't arriving" "How do I add buttons to notifications?" "How do I show images in push notifications?" "How do I send push updates to a Live Activity?" "What's the difference between APNs token and FCM token?" "How do I make notifications break through Focus mode?" "My notifications work in development but not production" "How do I handle notification taps to open a specific screen?"
Red Flags
Signs you're making this harder than it needs to be:
- ❌ Requesting permission on first launch before user understands value
- ❌ Caching device tokens locally instead of requesting fresh each launch
- ❌ Sending the same token to sandbox AND production APNs
- ❌ Using
content-available: 1without understanding silent push throttling (~2-3/hour) - ❌ Not implementing
serviceExtensionTimeWillExpirefallback - ❌ Force-unwrapping device token or assuming registration always succeeds
- ❌ Hardcoding APNs host instead of switching sandbox/production by environment
- ❌ Setting
apns-priority: 10for all notifications (drains battery, gets throttled) - ❌ Exceeding 4KB payload without realizing APNs silently rejects it
- ❌ Using FCM without disabling method swizzling when you have custom delegate handling
- ❌ Not handling foreground notification presentation (notifications silently dropped)
- ❌ Overusing Time Sensitive interruption level (erodes user trust, they'll disable all notifications)
Mandatory First Steps
Before implementing any push notification feature:
1. Enable Push Notification Capability
- Xcode: Target → Signing & Capabilities → + Push Notifications
- Adds
aps-environmententitlement - Verify in Apple Developer Portal that the App ID has Push Notifications enabled
2. Register for Remote Notifications
// AppDelegate
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
UNUserNotificationCenter.current().delegate = self
UIApplication.shared.registerForRemoteNotifications()
return true
}
func application(_ application: UIApplication,
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
let token = deviceToken.map { String(format: "%02x", $0) }.joined()
sendTokenToServer(token) // Never cache locally — tokens change
}
func application(_ application: UIApplication,
didFailToRegisterForRemoteNotificationsWithError error: Error) {
// Simulator cannot register. Log, don't crash.
}
3. Request Authorization (in context, not at launch)
let center = UNUserNotificationCenter.current()
let granted = try await center.requestAuthorization(options: [.alert, .sound, .badge])
if granted {
await MainActor.run { UIApplication.shared.registerForRemoteNotifications() }
}
Request when user action makes notification value obvious (e.g., after scheduling a reminder, subscribing to updates). The system prompts only once — bad timing means permanent denial.
Permission Flow
Pattern 1: Standard Authorization
Request in context after user understands the value:
func subscribeToUpdates() async {
let center = UNUserNotificationCenter.current()
let settings = await center.notificationSettings()
switch settings.authorizationStatus {
case .notDetermined:
let granted = try? await center.requestAuthorization(options: [.alert, .sound, .badge])
if granted == true {
await MainActor.run { UIApplication.shared.registerForRemoteNotifications() }
}
case .authorized, .provisional:
// Already have permission
break
case .denied:
// Redirect to Settings
promptToOpenSettings()
case .ephemeral:
break
@unknown default:
break
}
}
Pattern 2: Provisional Authorization (iOS 12+)
Notifications appear quietly in Notification Center with Keep/Turn Off buttons. No permission dialog shown to user.
let granted = try await center.re
Установить axiom-push-notifications в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл axiom-push-notifications?
Use when implementing remote or local push notifications, requesting notification permission, managing APNs device tokens, adding notification actions/categories, building service extensions, or debugging push delivery failures. Covers APNs, FCM, Live Activity push transport, broadcast push, communication notifications, Focus interaction.
Как установить скилл axiom-push-notifications?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл axiom-push-notifications запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic