Token导航 LogoToken导航

Agent Skill · 开发

axiom-push-notifications-ref(axiom 推送通知参考)

axiom-push-notifications-ref 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

axiom-push-notifications-ref 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 11,773。

总安装 1,591周安装 65GitHub Stars 873下载 510核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:axiom-push-notifications-ref(axiom 推送通知参考)
来源仓库:https://github.com/charleswiltgen/axiom
仓库路径:skills/axiom-push-notifications-ref
安装命令:
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-push-notifications-ref
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-push-notifications-ref

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

提供推送通知 API 的全面参考,包含 HTTP/2 传输和 UserNotifications 框架。适用于开发中需要查阅 UNUserNotificationCenterDelegate 协议细节时。涵盖本地通知、静默推送和广播推送等多种通知类型实现。

需区分 AppDelegate 和 SceneDelegate 中的不同配置方式。建议结合 Xcode 控制台日志验证推送通道建立情况。

来源仓库内路径:skills/axiom-push-notifications-ref

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/charleswiltgen/axiom --skill axiom-push-notifi…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

axiom-push-notifications-ref 怎么安装?

在终端执行 npx skills add https://github.com/charleswiltgen/axiom --skill axiom-push-notifications-re…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

axiom-push-notifications-ref 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

axiom-push-notifications-ref 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

axiom-push-notifications-ref 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

axiom-push-notifications-ref 用的人多吗?

公开数据是累计安装 1,591 次,近一周安装 65 次,下载 510 次,GitHub 873 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

axiom-push-notifications-ref 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
axiom-push-notifications-ref

axiom 推送通知参考 · 本页

1,591873接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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

EnvironmentHostPort
Developmentapi.sandbox.push.apple.com443 or 2197
Productionapi.push.apple.com443 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

HeaderRequiredValuesNotes
apns-push-typeYesalert, background, liveactivity, voip, complication, fileprovider, mdm, locationMust match payload content
apns-topicYesBundle ID (or.push-type.liveactivity suffix)Required for token-based auth
apns-priorityNo10 (immediate), 5 (power-conscious), 1 (low)Default: 10 for alert, 5 for background
apns-expirationNoUNIX timestamp or 00 = deliver once, don't store
apns-collapse-idNoString ≤64 bytesReplaces matching notification on device
apns-idNoUUID (lowercase)Returned by APNs for tracking
authorizationToken authbearer {JWT}Not needed for certificate auth
apns-unique-idResponse onlyUUIDUse with Push Notifications Console delivery log

Response Codes

StatusMeaningCommon Cause
200Success
400Bad requestMalformed JSON, missing required header
403ForbiddenExpired JWT, wrong team/key, topic mismatch
404Not foundInvalid device token path
405Method not allowedNot using POST
410UnregisteredDevice token no longer active (app uninstalled)
413Payload too largeExceeds 4KB (5KB for VoIP)
429Too many requestsRate limited by APNs
500Internal server errorAPNs issue, retry
503Service unavailableAPNs 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

RuleDetail
AlgorithmES256 (P-256 curve)
Signing keyAPNs auth key (.p8 from developer portal)
Token lifetimeMax 1 hour (403 ExpiredProviderToken if older)
Refresh intervalBetween 20 and 60 minutes
ScopeOne key works for all apps in team, both environments

Authorization Header Format

authorization: bearer eyAia2lkIjog...

Payload Reference

aps Dictionary Keys

KeyTypePurposeSince
alertDict/StringAlert contentiOS 10
badgeNumberApp icon badge (0 removes)iOS 10
soundString/DictAudio playbackiOS 10
thread-idStringNotification groupingiOS 10
categoryStringActionable notification typeiOS 10
content-availableNumber (1)Silent background pushiOS 10
mutable-contentNumber (1)Triggers service extensioniOS 10
target-content-idStringWindow/content identifieriOS 13
interruption-levelStringpassive/active/time-sensitive/criticaliOS 15
relevance-scoreNumber 0-1Notification summary sortingiOS 15
filter-criteriaStringFocus filter matchingiOS 15
stale-dateNumberUNIX timestamp (Live Activity)iOS 16.1
content-stateDictLive Activity content updateiOS 16.1
timestampNumberUNIX timestamp (Live Activity)iOS 16.1
eventStringstart/update/end (Live Activity)iOS 16.1
dismissal-dateNumberUNIX timestamp (Live Activity)iOS 16.1
attributes-typeStringLive Activity struct nameiOS 17
attributesDictLive Activity init dataiOS 17

Alert Dictionary Keys

KeyTypePurpose
titleStringShort title
subtitleStringSecondary description
bodyStringFull message
launch-imageStringLaunch screen filename
title-loc-keyStringLocalization key for title
title-loc-args[String]Title format arguments
subtitle-loc-keyStringLocalization key for subtitle
subtitle-loc-args[String]Subtitle format arguments
loc-keyStringLocalization key for body
loc-args[String]Body format arguments

Sound Dictionary (Critical Alerts)

{ "critical": 1, "name": "alarm.aiff", "volume": 0.8 }

Interruption Level Values

ValueBehaviorRequires
passiveNo sound/wake. Notification summary only.Nothing
activeDefault. Sound + banner.Nothing
time-sensitiveBreaks scheduled delivery. Banner persists.Time Sensitive capability
criticalOverrides DND and ringer switch.Apple approval + entitlement

Example Payloads

Basic Alert
{
    "aps": {
        "alert": {
            "title": "New Message",
            "subtitle": "From Alice",
            "body": "Hey, are you free for lunch?"
        },
        "badge": 3,
        "sound": "default"
    }
}
Localized with loc-key/loc-args
{
    "aps": {
        "alert": {
            "title-loc-key": "MESSAGE_TITLE",
            "title-loc-args": ["Alice"],
            "loc-key": "MESSAGE_BODY",
            "loc-args": ["Alice", "lunch"]
        },
        "sound": "default"
    }
}
Silent Background Push
{
    "aps": {
        "content-available": 1
    },
    "custom-key": "sync-update"
}
Rich Notification (Service Extension)
{
    "aps": {
        "alert": {
            "title": "Photo shared",
            "body": "Alice shared a photo with you"
        },
        "mutable-content": 1,
        "sound": "default"
    },
    "image-url": "https://example.com/photo.jpg"
}
Critical Alert
{
    "aps": {
        "alert": {
            "title": "Server Down",
            "body": "Production database is unreachable"
        },
        "sound": { "critical": 1, "name": "default", "volume": 1.0 },
        "interruption-level": "critical"
    }
}
Time-Sensitive with Category
{
    "aps": {
        "alert": {
            "title": "Package Delivered",
            "body": "Your order has been delivered to the front door"
        },
        "interruption-level": "time-sensitive",
        "category": "DELIVERY",
        "sound": "default"
    },
    "order-id": "12345"
}

UNUserNotificationCenter API Reference

Key Methods

MethodPurpose
requestAuthorization(options:)Request permission
notificationSettings()Check current status
add(_:)Schedule notification request
getPendingNotificationRequests()List scheduled
removePendingNotificationRequests(withIdentifiers:)Cancel scheduled
getDeliveredNotifications()List in notification center
removeDeliveredNotifications(withIdentifiers:)Remove from center
setNotificationCategories(_:)Register actionable types
setBadgeCount(_:)Update badge (iOS 16+)
supportsContentExtensionsCheck content extension support

UNAuthorizationOptions

OptionPurpose
.alertDisplay alerts
.badgeUpdate badge count
.soundPlay sounds
.carPlayShow in CarPlay
.criticalAlertCritical alerts (requires entitlement)
.provisionalTrial delivery without prompting
.providesAppNotificationSettings"Configure in App" button in Settings
.announcementSiri announcement (deprecated iOS 15+)

UNAuthorizationStatus

ValueMeaning
.notDeterminedNo prompt shown yet
.deniedUser denied or disabled in Settings
.authorizedUser explicitly granted
.provisionalProvisional trial delivery
.ephemeralApp Clip temporary

Request Authorization

let center = UNUserNotificationCenter.current()

let granted = try await center.requestAuthorization(options: [.alert, .sound, .badge])
if granted {
    await MainActor.run {
        UIApplication.shared.registerForRemoteNotifications()
    }
}

Check Settings

let settings = await center.notificationSettings()

switch settings.authorizationStatus {
case .authorized: break
case .denied:
    // Direct user to Settings
case .provisional:
    // Upgrade to full authorization
case .notDetermined:
    // Request authorization
case .ephemeral:
    // App Clip — temporary
@unknown default: break
}

Delegate Methods

// Foreground presentation — called when notification arrives while app is active
func userNotificationCenter(_ center: UNUserNotificationCenter,
                            willPresent notification: UNNotification) async
    -> UNNotificationPresentationOptions {
    return [.banner, .sound, .badge]
}

// Action response — called when user taps notification or action button
func userNotificationCenter(_ center: UNUserNotificationCenter,
                            didReceive response: UNNotificationResponse) async {
    let actionIdentifier = response.actionIdentifier
    let userInfo = response.notification.request.content.userInfo

    switch actionIdentifier {
    case UNNotificationDefaultActionIdentifier:
        // User tapped notification body
        break
    case UNNotificationDismissActionIdentifier:
        // User dismissed (requires .customDismissAction on category)
        break
    default:
        // Custom action
        break
    }
}

// Settings — called when user taps "Configure in App" from notification settings
func userNotificationCenter(_ center: UNUserNotificationCenter,
                            openSettingsFor notification: UNNotification?) {
    // Navigate to in-app notification settings
}

UNNotificationCategory and UNNotificationAction API

Category Registration

let likeAction = UNNotificationAction(
    identifier: "LIKE",
    title: "Like",
    options: []
)

let replyAction = UNTextInputNotificationAction(
    identifier: "REPLY",
    title: "Reply",
    options: [],
    textInputButtonTitle: "Send",
    textInputPlaceholder: "Type a message..."
)

let deleteAction = UNNotificationAction(
    identifier: "DELETE",
    title: "Delete",
    options: [.destructive, .authenticationRequired]
)

let messageCategory = UNNotificationCategory(
    identifier: "MESSAGE",
    actions: [likeAction, replyAction, deleteAction],
    intentIdentifiers: [],
    hiddenPreviewsBodyPlaceholder: "New message",
    categorySummaryFormat: "%u more messages",
    options: [.customDismissAction]
)

UNUserNotificationCenter.current().setNotificationCategories([messageCategory])

Action Options

OptionEffect
.authenticationRequiredRequires device unlock
.destructiveRed text display
.foregroundLaunches app to foreground

Category Options

OptionEffect
.customDismissActionFires delegate on dismiss
.allowInCarPlayShow actions in CarPlay
.hiddenPreviewsShowTitleShow title when previews hidden
.hiddenPreviewsShowSubtitleShow subtitle when previews hidden
.allowAnnouncementSiri can announce (deprecated iOS 15+)

UNNotificationActionIcon (iOS 15+)

let icon = UNNotificationActionIcon(systemImageName: "hand.thumbsup")
let action = UNNotificationAction(
    identifier: "LIKE",
    title: "Like",
    options: [],
    icon: icon
)

UNNotificationServiceExtension API

Modifies notification content before display. Runs in a separate extension process.

Lifecycle

MethodWindowPurpose
didReceive(_:withContentHandler:)~30 secondsModify notification content
serviceExtensionTimeWillExpire()Called at deadlineDeliver best attempt immediately

Implementation

class NotificationService: UNNotificationServiceExtension {
    var contentHandler: ((UNNotificationContent) -> Void)?
    var bestAttemptContent: UNMutableNotificationContent?

    override func didReceive(_ request: UNNotificationRequest,
                             withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
        self.contentHandler = contentHandler
        bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)

        guard let content = bestAttemptContent,
              let imageURLString = content.userInfo["image-url"] as? String,
              let imageURL = URL(string: imageURLString) else {
            contentHandler(request.content)
            return
        }

        // Download and attach image
        let task = URLSession.shared.downloadTask(with: imageURL) { url, _, error in
            defer { contentHandler(content) }
            guard let url = url, error == nil else { return }

            let attachment = try? UNNotificationAttachment(
                identifier: "image",
                url: url,
                options: [UNNotificationAttachmentOptionsTypeHintKey: "public.jpeg"]
            )
            if let attachment = attachment {
                content.attachments = [attachment]
            }
        }
        task.resume()
    }

    override func serviceExtensionTimeWillExpire() {
        if let content = bestAttemptContent {
            contentHandler?(content)
        }
    }
}

Supported Attachment Types

TypeExtensionsMax Size
Image.jpg,.gif,.png10 MB
Audio.aif,.wav,.mp35 MB
Video.mp4,.mpeg50 MB

Payload Requirement

The notification payload must include "mutable-content": 1 in the aps dictionary for the service extension to fire.


Local Notifications API

Trigger Types

TriggerUse CaseRepeating
UNTimeIntervalNotificationTriggerAfter N secondsYes (≥60s)
UNCalendarNotificationTriggerSpecific date/timeYes
UNLocationNotificationTriggerEnter/exit regionYes

Time Interval Trigger

let content = UNMutableNotificationContent()
content.title = "Reminder"
content.body = "Time to take a break"
content.sound = .default

let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 300, repeats: false)

let request = UNNotificationRequest(
    identifier: "break-reminder",
    content: content,
    trigger: trigger
)

try await UNUserNotificationCenter.current().add(request)

Calendar Trigger

var dateComponents = DateComponents()
dateComponents.hour = 9
dateComponents.minute = 0

let trigger = UNCalendarNotificationTrigger(dateMatching: dateComponents, repeats: true)

let request = UNNotificationRequest(
    identifier: "daily-9am",
    content: content,
    trigger: trigger
)

try await UNUserNotificationCenter.current().add(request)

Location Trigger

import CoreLocation

let center = CLLocationCoordinate2D(latitude: 37.3349, longitude: -122.0090)
let region = CLCircularRegion(center: center, radius: 100, identifier: "apple-park")
region.notifyOnEntry = true
region.notifyOnExit = false

let trigger = UNLocationNotificationTrigger(region: region, repeats: false)

let request = UNNotificationRequest(
    identifier: "arrived-at-office",
    content: content,
    trigger: trigger
)

try await UNUserNotificationCenter.current().add(request)

Limitations

LimitationDetail
Minimum repeat interval60 seconds for UNTimeIntervalNotificationTrigger
Location authorizationLocation trigger requires When In Use or Always authorization
No service extensionsLocal notifications do not trigger UNNotificationServiceExtension
No background wakeLocal notifications cannot use content-available for background processing
App extensionsLocal notifications cannot be scheduled from app extensions (use app group + main app)
Pending limit64 pending notification requests per app

Live Activity Push Headers

Required Headers

HeaderValue
apns-push-typeliveactivity
apns-topic{bundleID}.push-type.liveactivity
apns-priority5 (routine) or 10 (time-sensitive)

Event Types

EventPurposeRequired Fields
startStart Live Activity remotelyattributes-type, attributes, content-state, timestamp
updateUpdate contentcontent-state, timestamp
endEnd Live Activitytimestamp (content-state optional)

Update Payload

{
    "aps": {
        "timestamp": 1709913600,
        "event": "update",
        "content-state": {
            "homeScore": 2,
            "awayScore": 1,
            "inning": "Top 7"
        }
    }
}

Start Payload (Push-to-Start Token)

{
    "aps": {
        "timestamp": 1709913600,
        "event": "start",
        "content-state": {
            "homeScore": 0,
            "awayScore": 0,
            "inning": "Top 1"
        },
        "attributes-type": "GameAttributes",
        "attributes": {
            "homeTeam": "Giants",
            "awayTeam": "Dodgers"
        },
        "alert": {
            "title": "Game Starting",
            "body": "Giants vs Dodgers is about to begin"
        }
    }
}

Start Payload (Channel-Based)

{
    "aps": {
        "timestamp": 1709913600,
        "event": "start",
        "content-state": {
            "homeScore": 0,
            "awayScore": 0,
            "inning": "Top 1"
        },
        "attributes-type": "GameAttributes",
        "attributes": {
            "homeTeam": "Giants",
            "awayTeam": "Dodgers"
        }
    }
}

End Payload

{
    "aps": {
        "timestamp": 1709913600,
        "event": "end",
        "dismissal-date": 1709917200,
        "content-state": {
            "homeScore": 5,
            "awayScore": 3,
            "inning": "Final"
        }
    }
}

Push-to-Start Token

// Observe push-to-start tokens (iOS 17.2+)
for await token in Activity<GameAttributes>.pushToStartTokenUpdates {
    let tokenString = token.map { String(format: "%02x", $0) }.joined()
    sendPushToStartTokenToServer(tokenString)
}

Activity Push Token

// Observe activity-specific push tokens
for await tokenData in activity.pushTokenUpdates {
    let token = tokenData.map { String(format: "%02x", $0) }.joined()
    sendActivityTokenToServer(token, activityId: activity.id)
}

Content-state encoding rule: the system always uses default JSONDecoder — do not use custom encoding strategies in your ActivityAttributes.ContentState.


Broadcast Push API (iOS 18+)

Server-to-many push for Live Activities without tracking individual device tokens.

Endpoint

POST /4/broadcasts/apps/{TOPIC}

Headers

HeaderValue
apns-push-typeliveactivity
apns-channel-id{channelID}
authorizationbearer {JWT}

Subscribe via Channel

try Activity.request(
    attributes: attributes,
    content: .init(state: initialState, staleDate: nil),
    pushType: .channel(channelId)
)

Channel Storage Policies

PolicyBehaviorBudget
No StorageDeliver only to connected devicesHigher
Most Recent MessageStore latest for offline devicesLower

Command-Line Testing

JWT Generation

JWT_ISSUE_TIME=$(date +%s)
JWT_HEADER=$(printf '{ "alg": "ES256", "kid": "%s" }' "${AUTH_KEY_ID}" | openssl base64 -e -A | tr -- '+/' '-_' | tr -d =)
JWT_CLAIMS=$(printf '{ "iss": "%s", "iat": %d }' "${TEAM_ID}" "${JWT_ISSUE_TIME}" | openssl base64 -e -A | tr -- '+/' '-_' | tr -d =)
JWT_HEADER_CLAIMS="${JWT_HEADER}.${JWT_CLAIMS}"
JWT_SIGNED_HEADER_CLAIMS=$(printf "${JWT_HEADER_CLAIMS}" | openssl dgst -binary -sha256 -sign "${TOKEN_KEY_FILE_NAME}" | openssl base64 -e -A | tr -- '+/' '-_' | tr -d =)
AUTHENTICATION_TOKEN="${JWT_HEADER}.${JWT_CLAIMS}.${JWT_SIGNED_HEADER_CLAIMS}"

Send Alert Push

curl -v \
  --header "apns-topic: $TOPIC" \
  --header "apns-push-type: alert" \
  --header "authorization: bearer $AUTHENTICATION_TOKEN" \
  --data '{"aps":{"alert":"test"}}' \
  --http2 https://${APNS_HOST_NAME}/3/device/${DEVICE_TOKEN}

Send Live Activity Push

curl \
  --header "apns-topic: com.example.app.push-type.liveactivity" \
  --header "apns-push-type: liveactivity" \
  --header "apns-priority: 10" \
  --header "authorization: bearer $AUTHENTICATION_TOKEN" \
  --data '{
      "aps": {
          "timestamp": '$(date +%s)',
          "event": "update",
          "content-state": { "score": "2-1" }
      }
  }' \
  --http2 https://api.sandbox.push.apple.com/3/device/$ACTIVITY_PUSH_TOKEN

Simulator Push

xcrun simctl push booted com.example.app payload.json

Simulator Payload File

{
    "Simulator Target Bundle": "com.example.app",
    "aps": {
        "alert": { "title": "Test", "body": "Hello" },
        "sound": "default"
    }
}

Resources

WWDC: 2021-10091, 2023-10025, 2023-10185, 2024-10069

Docs: /usernotifications, /usernotifications/sending-notification-requests-to-apns, /usernotifications/generating-a-remote-notification, /activitykit

Skills: axiom-push-notifications, axiom-push-notifications-diag, axiom-extensions-widgets

平台分布

Codex

37.36%
按下载量换算191

Claude

30.65%
按下载量换算156

Cursor

18.46%
按下载量换算94

Gemini CLI

9.56%
按下载量换算49

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills