notification-object.md 427 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
---
id: notification-object
title: Notification object
sidebar_label: Notification
---

Contains the payload data.


Example:
```js
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});
});
```