Skip to content

Commit

Permalink
docs: android in registerNotificationOpened
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielEliraz committed Feb 15, 2022
1 parent ff6e616 commit 32746fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/api/general-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ To receive background notifications on iOS follow [this guide](https://developer
## registerNotificationOpened()
Fired when a remote notification is opened from dead or background state. The handler will be invoked with an instance of [Notification](notification-obj).
Should call completion function on iOS, will be ignored on Android.
Being called before component is mounted, if you want to know the initial notification in the component please use [getInitialNotification](general-api#getInitialNotification) on mount.
Android: This event will be called before the component is mounted, if you want to know the initial notification in the component please use [getInitialNotification](general-api#getInitialNotification) on mount.

```js
Notifications.events().registerNotificationOpened((notification: Notification, completion: () => void) => {
Expand Down

0 comments on commit 32746fd

Please sign in to comment.