Files
react-native-notifications/docs/notification-object.md
2019-10-02 16:23:21 +03:00

427 B
Executable File

id, title, sidebar_label
id title sidebar_label
notification-object Notification object Notification

Contains the payload data.

Example:

Notifications.events().registerNotificationReceived((notification: Notification, completion: (response: NotificationCompletion) => void) => {
  // Prints the notification payload
  console.log(JSON.stringify(notification.data));

  completion({alert: false, sound: false, badge: false});
});