# Push notification on reaction added/removed

**URL:** <https://community.sendbird.com/t/push-notification-on-reaction-added-removed/211>\
**Category:** Sendbird Chat API/SDK\
**Tags:** group-channel, push-notification, chatsdk\
**Created:** [April 22, 2020, 9:55am UTC](https://community.sendbird.com/t/push-notification-on-reaction-added-removed/211 "2020-04-22T09:55:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SafiyyaBabio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/safiyyababio/32/83_2.png) [@SafiyyaBabio](https://community.sendbird.com/u/SafiyyaBabio)\
**Post date:** [April 22, 2020, 9:55am UTC](https://community.sendbird.com/t/push-notification-on-reaction-added-removed/211/1 "2020-04-22T09:55:58Z")

</div>

Hi there,

I’ve setup the reactions on my account and can successfully add and remove reactions to messages in my group channels (react native). However, I do not get sent push notifications when a reaction is added to my messages:

- Is there a plan to add reactions as part of the push notification triggers?
- Can I trigger them manually?

---

<div class="post-metadata">

**Author:** ![Woo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/woo/32/125_2.png) [@Woo](https://community.sendbird.com/u/Woo)\
**Post date:** [April 30, 2020, 3:22am UTC](https://community.sendbird.com/t/push-notification-on-reaction-added-removed/211/2 "2020-04-30T03:22:10Z")

</div>

Hi @SafiyyaBabio

Unfortunately, we do not trigger for reaction at this moment and I doubt we have any plans to support it near future. And you cannot trigger push notification unless you send a message.

---

<div class="post-metadata">

**Author:** ![inrecovery](https://avatars.discourse-cdn.com/v4/letter/i/a4c791/32.png) [@inrecovery](https://community.sendbird.com/u/inrecovery)\
**Post date:** [May 2, 2020, 1:47am UTC](https://community.sendbird.com/t/push-notification-on-reaction-added-removed/211/3 "2020-05-02T01:47:04Z")

</div>

Hi @SafiyyaBabio,

Since your FCM tokens are managed by you, you could technically send your own notifications with a pretty simple setup and a bit of configuration. This is just a workaround, but it could help you accomplish what you need.

The idea: Triggering your own push notification method to the onReactionUpdated() listener.

Example in React-Native (but the same principle would apply to iOS and Android):

1. Setup react-native-firebase ([https://rnfirebase.io/messaging/](https://rnfirebase.io/messaging/))

2. Configure your notification payload by grabbing the content you need from the reaction object, which contains the content for your notification payload:

```auto
{
    "user_id": "Jessie",
    "operation": "ADD",
    "success": true,
    "reaction": "celebrate",
    "updated_at": 1577327594231
}

```

1. Set that up as part of your \_body payload and call firebase.Notification()

```auto
const notification = new firebase.notifications.Notification()
  .setNotificationId(_id)
  .setTitle(_title)
  .setBody(_body);

```

Let me know if this helps. Will be cool to see you implement it!

Cheers,

David

---

<div class="post-metadata">

**Author:** ![Woo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/woo/32/125_2.png) [@Woo](https://community.sendbird.com/u/Woo)\
**Post date:** [May 4, 2020, 3:42am UTC](https://community.sendbird.com/t/push-notification-on-reaction-added-removed/211/4 "2020-05-04T03:42:20Z")

</div>

Good idea! However that would only works if the app is on foreground tho. Because if the app is on background, websocket is disconnected and I doubt that onReactionUpdated callback would be get called.
