Function: notification()

notification(title?, subtitle?, body?, content?): void

发送系统通知并按平台适配参数格式。 Send system notification with platform-specific payload mapping.

说明: Notes:

  • iOS App 平台调用 $notification.post$notify
  • iOS app platforms call $notification.post or $notify
  • Worker 不支持 iOS 通知接口,仅输出日志
  • Worker does not support iOS notification APIs; it logs only
  • Node.js 不支持 iOS 通知接口,仅输出日志
  • Node.js does not support iOS notification APIs; it logs only

Parameters

title?

string = ...

ℹ️ ${$app} 通知] 标题 / Title.

subtitle?

string = ""

副标题 / Subtitle.

body?

string = ""

内容 / Message body.

content?

any = {}

扩展参数 / Extended content options.

Returns

void