你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AppleApsNativeMessage interface

表示本机 APNs APS 消息。

扩展

Record<string, any>

属性

alert

用于显示警报的信息。

badge

要显示在应用图标上的锁屏提醒中的数字。

category

通知的类型。

content-available

后台通知标志。 若要执行无提示后台更新,请指定值 1,并且不包括有效负载中的警报、锁屏提醒或声音键。

content-state

实时活动的更新内容或最终内容。

dismissal-date

表示系统结束实时活动的日期的 UNIX 时间戳,并将其从动态岛和锁屏中删除。

events

描述是使用远程推送通知更新还是结束正在进行的实时活动的字符串。 若要更新实时活动,请使用更新。 若要结束实时活动,请使用结束。

filter-criteria

系统评估的条件以确定它是否在当前焦点中显示通知。

interruption-level

通知的重要性和传递时间。

mutable-content

通知服务应用扩展标志。 如果值为 1,则系统会在传递之前将通知传递到通知服务应用扩展插件。

relevance-score

相关性分数(介于 0 和 1 之间的数字)用于对应用中的通知进行排序。 通知摘要中将特别推荐最高分数。

sound

应用主捆绑包或应用的容器目录的 Library/Sound 文件夹中声音文件的名称。 指定字符串“default”以播放系统声音。 将此密钥用于常规通知。 对于关键警报,请改用声音字典。

stale-date

表示实时活动过期或过期日期的 UNIX 时间戳。

target-content-id

向前推进的窗口的标识符。

thread-id

用于对相关通知进行分组的应用特定标识符。

timestamp

用于标记发送更新或结束实时活动的远程通知的时间的 UNIX 时间戳。

属性详细信息

alert

用于显示警报的信息。

alert?: string | AppleAlert

属性值

string | AppleAlert

badge

要显示在应用图标上的锁屏提醒中的数字。

badge?: number

属性值

number

category

通知的类型。

category?: string

属性值

string

content-available

后台通知标志。 若要执行无提示后台更新,请指定值 1,并且不包括有效负载中的警报、锁屏提醒或声音键。

content-available?: number

属性值

number

content-state

实时活动的更新内容或最终内容。

content-state?: Record<string, any>

属性值

Record<string, any>

dismissal-date

表示系统结束实时活动的日期的 UNIX 时间戳,并将其从动态岛和锁屏中删除。

dismissal-date?: number

属性值

number

events

描述是使用远程推送通知更新还是结束正在进行的实时活动的字符串。 若要更新实时活动,请使用更新。 若要结束实时活动,请使用结束。

events?: string

属性值

string

filter-criteria

系统评估的条件以确定它是否在当前焦点中显示通知。

filter-criteria?: string

属性值

string

interruption-level

通知的重要性和传递时间。

interruption-level?: "passive" | "active" | "time-sensitive" | "critical"

属性值

"passive" | "active" | "time-sensitive" | "critical"

mutable-content

通知服务应用扩展标志。 如果值为 1,则系统会在传递之前将通知传递到通知服务应用扩展插件。

mutable-content?: number

属性值

number

relevance-score

相关性分数(介于 0 和 1 之间的数字)用于对应用中的通知进行排序。 通知摘要中将特别推荐最高分数。

relevance-score?: number

属性值

number

sound

应用主捆绑包或应用的容器目录的 Library/Sound 文件夹中声音文件的名称。 指定字符串“default”以播放系统声音。 将此密钥用于常规通知。 对于关键警报,请改用声音字典。

sound?: string | AppleCriticalSound

属性值

stale-date

表示实时活动过期或过期日期的 UNIX 时间戳。

stale-date?: number

属性值

number

target-content-id

向前推进的窗口的标识符。

target-content-id?: string

属性值

string

thread-id

用于对相关通知进行分组的应用特定标识符。

thread-id?: string

属性值

string

timestamp

用于标记发送更新或结束实时活动的远程通知的时间的 UNIX 时间戳。

timestamp?: number

属性值

number