Skip to content

Commit

Permalink
emphasize NotificationReceivedBackground ios guide (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielEliraz authored Mar 9, 2022
1 parent e3f024c commit 22f4f44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/docs/api/general-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Notifications.events().registerNotificationReceivedForeground((notification: Not
```

## registerNotificationReceivedBackground()
#### To receive background notifications on iOS follow [this guide](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app).
Fired when a remote notification is received in 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.

Expand All @@ -39,8 +40,6 @@ Notifications.events().registerNotificationReceivedBackground((notification: Not
});
```

To receive background notifications on iOS follow [this guide](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app)

## 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.
Expand Down

0 comments on commit 22f4f44

Please sign in to comment.