# setBackgroundMessageHandler is not working in IOS

**URL:** <https://community.sendbird.com/t/setbackgroundmessagehandler-is-not-working-in-ios/6205>\
**Category:** Miscellaneous\
**Tags:** push-notification\
**Created:** [December 23, 2022, 1:52am UTC](https://community.sendbird.com/t/setbackgroundmessagehandler-is-not-working-in-ios/6205 "2022-12-23T01:52:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pickn](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/pickn/32/3373_2.png) [@pickn](https://community.sendbird.com/u/pickn)\
**Post date:** [December 23, 2022, 1:52am UTC](https://community.sendbird.com/t/setbackgroundmessagehandler-is-not-working-in-ios/6205/1 "2022-12-23T01:52:09Z")

</div>

In IOS, setBackgroundMessageHandler is not working

but by using push-notification-ios / notifee, I can get push notification as local notification

What is the problem?

---

<div class="post-metadata">

**Author:** ![sardorbek.numonov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sardorbek.numonov/32/697_2.png) [@sardorbek.numonov](https://community.sendbird.com/u/sardorbek.numonov)\
**Post date:** [December 23, 2022, 2:17am UTC](https://community.sendbird.com/t/setbackgroundmessagehandler-is-not-working-in-ios/6205/2 "2022-12-23T02:17:11Z")

</div>

Hi @pickn. Could you please give more information about what you have done so far and what is not working?

---

<div class="post-metadata">

**Author:** ![pickn](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/pickn/32/3373_2.png) [@pickn](https://community.sendbird.com/u/pickn)\
**Post date:** [December 23, 2022, 4:47am UTC](https://community.sendbird.com/t/setbackgroundmessagehandler-is-not-working-in-ios/6205/3 "2022-12-23T04:47:15Z")

</div>

1. Install react-native-firebase/messaging
2. setting setBackgroundMessageHandler at index.js
3. connect sendbird using registerAPNSPushTokenForCurrentUser

but when I send message, console doesn’t show anything

---

<div class="post-metadata">

**Author:** ![sardorbek.numonov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sardorbek.numonov/32/697_2.png) [@sardorbek.numonov](https://community.sendbird.com/u/sardorbek.numonov)\
**Post date:** [December 23, 2022, 6:22am UTC](https://community.sendbird.com/t/setbackgroundmessagehandler-is-not-working-in-ios/6205/4 "2022-12-23T06:22:08Z")

</div>

@pickn You have already done Notification Settings on Sendbird’s Dashboard, right?

Sendbird will send push notifications to users when they are not connected to Sendbird. While connecting Sendbird, Sendbird will send a new message via WebSocket.

Could you please check whether your user is disconnected from Sendbird or not?

---

<div class="post-metadata">

**Author:** ![pickn](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/pickn/32/3373_2.png) [@pickn](https://community.sendbird.com/u/pickn)\
**Post date:** [December 23, 2022, 6:49am UTC](https://community.sendbird.com/t/setbackgroundmessagehandler-is-not-working-in-ios/6205/5 "2022-12-23T06:49:28Z")

</div>

Yes, user is connected

SetBackgroundMessageHandler is working at Android  
not working on IOS as same code
