# Push notifications do not pop up in background mode

**URL:** <https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355>\
**Category:** JavaScript\
**Tags:** push-notification\
**Created:** [November 10, 2021, 4:59pm UTC](https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355 "2021-11-10T16:59:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stanislav\_Sidorov](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@Stanislav\_Sidorov](https://community.sendbird.com/u/Stanislav_Sidorov)\
**Post date:** [November 10, 2021, 4:59pm UTC](https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355/1 "2021-11-10T16:59:54Z")

</div>

Hello  
How can i add field ‘notification’ or ‘priority’ when sendbird sends ‘received new message’ notification?  
Implemented push notifications several times and all worked fine, from my backend also works as expected.

According to the react-native-firebase docs [Cloud Messaging | React Native Firebase](https://rnfirebase.io/messaging/usage#background--quit-state-messages), we need ‘priority: high’ or ‘notification’ field, to see popup notification.

that how it comes now, missing both required fields

```auto
{
    data: {
      message: 'Test message sent at 18:46:08 on 11-10-2021',
      sendbird:
        '{"sqs_ts":1636562768817,"custom_type":"","channel":{"channel_unread_message_count":11,"custom_type":"","name":"Push Notification Tester","channel_url":"pushtesttoold08c6d852c09588b5d3e4497ac2d7536"},"created_at":1636562768755,"message_id":1573224352,"message":"Test message sent at 18:46:08 on 11-10-2021","type":"ADMM","unread_message_count":15,"push_title":null,"audience_type":"only","push_sound":"default","translations":{},"recipient":{"name":"Larry Morgan","push_template":"default","id":"114dba88-80dc-4827-93a1-34b16e8f42e5"},"files":[],"category":"messaging:offline_notification","channel_type":"group_messaging","mentioned_users":[],"app_id":"F7678905-EEA2-408E-94BE-98418116BF94"}',
    },
    from: '842195359472',
    messageId: '0:1636562768937813%a8047b4ff9fd7ecd',
    sentTime: 1636562768922,
    ttl: 2419200,
  };

```

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [November 10, 2021, 5:06pm UTC](https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355/2 "2021-11-10T17:06:10Z")

</div>

Hey @Stanislav_Sidorov,

Let me connect with our Engineering team on this topic to better understand what is happening here.

---

<div class="post-metadata">

**Author:** ![Stanislav\_Sidorov](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@Stanislav\_Sidorov](https://community.sendbird.com/u/Stanislav_Sidorov)\
**Post date:** [November 11, 2021, 1:50pm UTC](https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355/3 "2021-11-11T13:50:41Z")

</div>

Hey @Tyler, thank you for helping, I would appreciate any information you may give

---

<div class="post-metadata">

**Author:** ![Charis\_Theodoulou](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/charis_theodoulou/32/1401_2.png) [@Charis\_Theodoulou](https://community.sendbird.com/u/Charis_Theodoulou)\
**Post date:** [November 18, 2021, 4:45pm UTC](https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355/4 "2021-11-18T16:45:08Z")

</div>

Hello, if you are using `react-native-push-notification` you can set the `priority` field when calling `PushNotification.configure` and on the `onNotification` callback like below:

```javascript
import PushNotification from 'react-native-push-notification';

PushNotification.configure({
      onRegister: async function (token) {
        SendBirdCall.registerPushToken(token.token, "<TOKEN TYPE>")
          .then(() => console.log('token is registered.'))
          .catch((e) => console.error(`token is not registered. Error: ${e}`));
      },

      onNotification: function (notification) {
        if (isSBNotification(notification)) {
          PushNotification.localNotification({
            priority: 'high',
            // ...
        }
      }

```

---

<div class="post-metadata">

**Author:** ![Stanislav\_Sidorov](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@Stanislav\_Sidorov](https://community.sendbird.com/u/Stanislav_Sidorov)\
**Post date:** [November 18, 2021, 4:57pm UTC](https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355/5 "2021-11-18T16:57:50Z")

</div>

hello, thanks, but we are using react-native-firebase/messaging  
and notification field is missing anyway

 ![Screenshot 2021-11-18 at 19.02.06](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/1/1352f490971a9a45168ea11ead6a5a444c0dc7ce.jpeg)

---

<div class="post-metadata">

**Author:** ![Charis\_Theodoulou](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/charis_theodoulou/32/1401_2.png) [@Charis\_Theodoulou](https://community.sendbird.com/u/Charis_Theodoulou)\
**Post date:** [November 18, 2021, 5:29pm UTC](https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355/6 "2021-11-18T17:29:27Z")

</div>

No problem, thanks for the update.  
While I am looking into react-native-firebase/messaging, can you share the Android version of the device you are testing on?

---

<div class="post-metadata">

**Author:** ![Stanislav\_Sidorov](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@Stanislav\_Sidorov](https://community.sendbird.com/u/Stanislav_Sidorov)\
**Post date:** [November 18, 2021, 5:44pm UTC](https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355/7 "2021-11-18T17:44:35Z")

</div>

android v10  
iphone 6s v15  
iphone XR v14.7.1

---

<div class="post-metadata">

**Author:** ![kiran](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/kiran/32/3493_2.png) [@kiran](https://community.sendbird.com/u/kiran)\
**Post date:** [April 3, 2023, 11:00am UTC](https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355/8 "2023-04-03T11:00:48Z")

</div>

@Stanislav_Sidorov did you found any solution?

---

<div class="post-metadata">

**Author:** ![waldek](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@waldek](https://community.sendbird.com/u/waldek)\
**Post date:** [February 13, 2025, 12:22pm UTC](https://community.sendbird.com/t/push-notifications-do-not-pop-up-in-background-mode/3355/9 "2025-02-13T12:22:32Z")

</div>

@Charis_Theodoulou  
Hello Charis, have you found a solution to this problem? I have exactly the same problem. Notifications when the app is closed or in the background are not displayed. The missing “Notification” field seems to be causing the problem. How can I add the Notification field to notifications sent from the Sendbird server?  
I’m using react-native-firebase/messaging  
Regards
