Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

axiom-push-notifications-ref

БесплатноБез исполняемых скриптовНе проверен

Use when needing APNs HTTP/2 transport details, JWT authentication setup, payload key reference, UNUserNotificationCenter API, notification category/action…

ComeOnOliverот ComeOnOliver★ 67 звёзд на GitHub

Об этом скилле

Push Notifications API Reference

Comprehensive API reference for APNs HTTP/2 transport, UserNotifications framework, and push-driven features including Live Activities and broadcast push.

Quick Reference

// AppDelegate — minimal remote notification setup
class AppDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCenterDelegate {
    func application(_ application: UIApplication,
                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        UNUserNotificationCenter.current().delegate = self
        return true
    }

    func application(_ application: UIApplication,
                     didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
        let token = deviceToken.map { String(format: "%02x", $0) }.joined()
        sendTokenToServer(token)
    }

    func application(_ application: UIApplication,
                     didFailToRegisterForRemoteNotificationsWithError error: Error) {
        print("Registration failed: \(error)")
    }

    // Show notifications when app is in foreground
    func userNotificationCenter(_ center: UNUserNotificationCenter,
                                willPresent notification: UNNotification) async -> UNNotificationPresentationOptions {
        return [.banner, .sound, .badge]
    }

    // Handle notification tap / action response
    func userNotificationCenter(_ center: UNUserNotificationCenter,
                                didReceive response: UNNotificationResponse) async {
        let userInfo = response.notification.request.content.userInfo
        // Route to appropriate screen based on userInfo
    }
}

APNs Transport Reference

Endpoints

Environment Host Port
Development api.sandbox.push.apple.com 443 or 2197
Production api.push.apple.com 443 or 2197

Request Format

POST /3/device/{device_token}
Host: api.push.apple.com
Authorization: bearer {jwt_token}
apns-topic: {bundle_id}
apns-push-type: alert
Content-Type: application/json

APNs Headers

Header Required Values Notes
apns-push-type Yes alert, background, liveactivity, voip, complication, fileprovider, mdm, location Must match payload content
apns-topic Yes Bundle ID (or .push-type.liveactivity suffix) Required for token-based auth
apns-priority No 10 (immediate), 5 (power-conscious), 1 (low) Default: 10 for alert, 5 for background
apns-expiration No UNIX timestamp or 0 0 = deliver once, don't store
apns-collapse-id No String ≤64 bytes Replaces matching notification on device
apns-id No UUID (lowercase) Returned by APNs for tracking
authorization Token auth bearer {JWT} Not needed for certificate auth
apns-unique-id Response only UUID Use with Push Notifications Console delivery log

Response Codes

Status Meaning Common Cause
200 Success
400 Bad request Malformed JSON, missing required header
403 Forbidden Expired JWT, wrong team/key, topic mismatch
404 Not found Invalid device token path
405 Method not allowed Not using POST
410 Unregistered Device token no longer active (app uninstalled)
413 Payload too large Exceeds 4KB (5KB for VoIP)
429 Too many requests Rate limited by APNs
500 Internal server error APNs issue, retry
503 Service unavailable APNs overloaded, retry with backoff

JWT Authentication Reference

JWT Header

{ "alg": "ES256", "kid": "{10-char Key ID}" }

JWT Claims

{ "iss": "{10-char Team ID}", "iat": {unix_timestamp} }

Rules

Rule Detail
Algorithm ES256 (P-256 curve)
Signing key APNs auth key (.p8 from developer portal)
Token lifetime Max 1 hour (403 ExpiredProviderToken if older)
Refresh interval Between 20 and 60 minutes
Scope One key works for all apps in team, both environments

Authorization Header Format

authorization: bearer eyAia2lkIjog...

Payload Reference

aps Dictionary Keys

Key Type Purpose Since
alert Dict/String Alert content iOS 10
badge Number App icon badge (0 removes) iOS 10
sound String/Dict Audio playback iOS 10
thread-id String Notification grouping iOS 10
category String Actionable notification type iOS 10
content-available Number (1) Silent background push iOS 10
mutable-content Number (1) Triggers service extension iOS 10
target-content-id String Window/content identifier iOS 13
interruption-level String passive/active/time-sensitive/critical iOS 15
relevance-score Number 0-1 Notification summary sorting iOS 15
filter-criteria String Focus filter
Полный SKILL.md на GitHub

Установить axiom-push-notifications-ref в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл axiom-push-notifications-ref?

Use when needing APNs HTTP/2 transport details, JWT authentication setup, payload key reference, UNUserNotificationCenter API, notification category/action registration, service extension lifecycle, local notification triggers, Live Activity push headers, or broadcast push format. Covers complete push notification API surface.

Как установить скилл axiom-push-notifications-ref?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл axiom-push-notifications-ref запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить axiom-push-notifications-ref с