pushNotifications API 列表

本模块包含 3 个 API。

Events(事件)

API 说明 鸿蒙支持
received-apns-notification 在应用运行期间收到远程推送通知时触发。 不支持

Methods(方法)

API 说明 鸿蒙支持
pushNotifications.registerForAPNSNotifications() 返回 Promise,向 APNS 注册以接收推送通知,resolve 后返回设备 token。 不支持
pushNotifications.unregisterForAPNSNotifications() 取消应用在 APNS 的远程通知注册。 不支持