Skip to content

Commit b327ef5

Browse files
authored
Merge pull request #1684 from GetStream/santhosh/update-push-docs
docs: inform user about notification template caveat
2 parents d02154b + 8dfa4d0 commit b327ef5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docusaurus/docs/reactnative/guides/push_notifications_v2.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Easiest way to integrate push notifications in your Chat applications is using F
2727

2828
:::note
2929

30-
- If you would like to get push notifications only when users are offline, please contact [email protected].
3130
- Push notifications require membership. Watching a channel isn't enough.
3231

3332
:::
@@ -463,6 +462,11 @@ notifee.onBackgroundEvent(async ({ detail, type }) => {
463462
464463
The `notification_template` is a JSON object that includes the keys relevant to push notifications for Android. See the [AndroidNotification](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#AndroidNotification) type in the firebase documentation for all the supported keys.
465464
465+
:::
466+
:::caution
467+
468+
We do not recommend doing this. If `notification_template` is added, then notifications will be shown in the foreground for Android. iOS will, by default, not show any notifications in the foreground. Generally, chat applications do not show push notifications in the foreground. This is why we do not recommend it. However, if you want foreground notifications in both platforms, please follow the steps mentioned in the [display-notification-in-foreground](#display-notification-in-foreground) section.
469+
466470
:::
467471
468472
### Show badge number on the iOS app

0 commit comments

Comments
 (0)