mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-11 08:13:28 +08:00
672 B
Executable File
672 B
Executable File
id, title, sidebar_label
| id | title | sidebar_label |
|---|---|---|
| ios-events | iOS | iOS specific |
registerPushKitRegistered()
Fired when the user registers for PushKit notifications. The handler will be invoked with an event holding the hex string representing the pushKitToken
Notifications.ios.events().registerPushKitRegistered((event: RegisteredPushKit) => {
console.log(event.pushKitToken);
});
registerPushKitNotificationReceived()
Fired when a PushKit notification is received. The handler will be invoked with the notification object.
Notifications.ios.events().registerPushKitNotificationReceived((payload: object) => {
console.log(JSON.stringify(payload));
});