PushNotificationApi

PushNotificationApi()

推送通知挂钩。实例名称:pushNotificationApi

你可以使用这个钩子为你的应用定制推送通知,比如通过发送设备令牌来使用Amazon AWS启用推送通知。

构造函数

新PushNotificationApi()

例子
externalCodeSetup.pushNotificationApi.METHOD_NAME

方法

enableAwsPushNotifications()

使用Amazon AWS启用推送通知。您可以使用它来发送设备令牌而不是FCM令牌。欲了解更多信息,请参阅https://rnfirebase.io/reference/messaging#getAPNSToken

例子
externalCodeSetup.pushNotificationApi.enableAwsPushNotifications ()
Baidu