# Can not receive

**URL:** <https://community.sendbird.com/t/can-not-receive/2502>\
**Category:** Android\
**Created:** [June 22, 2021, 5:40am UTC](https://community.sendbird.com/t/can-not-receive/2502 "2021-06-22T05:40:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piyavate\_HL](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/piyavate_hl/32/1229_2.png) [@Piyavate\_HL](https://community.sendbird.com/u/Piyavate_HL)\
**Post date:** [June 22, 2021, 5:40am UTC](https://community.sendbird.com/t/can-not-receive/2502/1 "2021-06-22T05:40:56Z")

</div>

Uikit 2.1.5

after send message i can not get payload from this function after chat between device

- token device to send bird complete
- set fcm server api complete
- set firebase json complete
- and config AppID
- Please suggest me.

this function in [public class MyFirebaseMessagingService extends SendBirdPushHandler]

@Override  
public void onMessageReceived(Context context, RemoteMessage remoteMessage) {

---

<div class="post-metadata">

**Author:** ![hoons](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/hoons/32/77_2.png) [@hoons](https://community.sendbird.com/u/hoons)\
**Post date:** [June 23, 2021, 12:20am UTC](https://community.sendbird.com/t/can-not-receive/2502/2 "2021-06-23T00:20:24Z")

</div>

Hi @Piyavate_HL ,

There’s couple of things I want to check.

1. Registration of `MyFirebaseMessagingService` (can be done by `SendBirdPushHelper.registerPushHandler(handler)`).
2. By `cannot get payload`, do you mean you get a push notification but you don’t have the payload from it? or are you not getting the push notification at all?
3. Test with two devices (device A and B). Both app should be logged in (`Sendbird.connect()`).
4. Is device A’s app in background (or terminated) while device B sends a message?
  - Push messages, by default, will only be received when the app is not connected to Sendbird (on the background, terminated, etc).
  - If you want to receive push message even when the app is on the foreground, override `boolean alwaysReceiveMessage()` from `MyFirebaseMessagingService` and return `true`.

Additional code snippet of how you push handler, how you registered it, etc, would help debug this issue.

---

<div class="post-metadata">

**Author:** ![hoons](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/hoons/32/77_2.png) [@hoons](https://community.sendbird.com/u/hoons)\
**Post date:** [June 23, 2021, 5:18am UTC](https://community.sendbird.com/t/can-not-receive/2502/4 "2021-06-23T05:18:33Z")

</div>

Hi @Piyavate_HL,  
Thanks for more information so you’re using the UIKit SDK.

From the log you given, it seems like this app was on foreground (connection was made to Sendbird).  
Could you try below?

1. Device A: launch the app, log in, then move the app to the background (do not bring the app to foreground).
2. Device B: send a message to user who’s logged in on Device A.

Could you grab a log (from the launch of the app until the Device B sends a message) of `Device A` since Device A should receive push notification in this case.  
Could you also check device A and device B are logged in as a distinct user?

---

<div class="post-metadata">

**Author:** ![hoons](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/hoons/32/77_2.png) [@hoons](https://community.sendbird.com/u/hoons)\
**Post date:** [June 24, 2021, 12:01am UTC](https://community.sendbird.com/t/can-not-receive/2502/8 "2021-06-24T00:01:29Z")

</div>

I’ve seen your log, and it seems like device `A` send message to device `B` when the app on the device `B` is on the background, right?

The log from device `A` is enough, I see all logs from the start to sending a message, but the log from device B is not (it’s not from the beginning where Sendbird is initialized and connected), so I can’t check whether the push token has been registered or not.

---

<div class="post-metadata">

**Author:** ![Piyavate\_HL](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/piyavate_hl/32/1229_2.png) [@Piyavate\_HL](https://community.sendbird.com/u/Piyavate_HL)\
**Post date:** [June 24, 2021, 2:39am UTC](https://community.sendbird.com/t/can-not-receive/2502/9 "2021-06-24T02:39:13Z")

</div>

Hi

thank for reply

Device B  
2021-06-23 15:22:01.107 9246-11291/com.sendbird.calls.quickstartpyh1 D/FA: Application going to the background

But Device B is Slient when Device A Send Message

Device push token is register when start app

is token A,B  
A : d84bmrucT\_yJYumCeB48zf:APA91bGnMWx9QAwXkXedNJqh\_M20SoPNTO2SBIAuHMGWqrExd6ysYjgoSgDHJODy34BScUab11Se-avrKCsK51aenuuLkvQkJ\_0kW7ejNrmnaBFUH6pYS47jOYL5qG3L7rzf7U7E7BBl

B : e4gOEeMlMLA:APA91bG19547QpVgYVElQvQZiQpIq\_DQYSuHb9DSPmsSpUQoVQMk4W-xdxsGJTVWvZAuxm9niH4wEIMXAQS5cMMnIGqrcD46yFrVxK290iv-AiEmLRUIrM4fdZqJzMfZoHNjP2o3–n6

 ![Screenshot (333)](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/6/6cf447d416b257fc903c9aa53cd07d073891baff.png)

---

<div class="post-metadata">

**Author:** ![Piyavate\_HL](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/piyavate_hl/32/1229_2.png) [@Piyavate\_HL](https://community.sendbird.com/u/Piyavate_HL)\
**Post date:** [June 24, 2021, 2:47am UTC](https://community.sendbird.com/t/can-not-receive/2502/10 "2021-06-24T02:47:01Z")

</div>

![Screenshot (334)](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/a/a45b93c6df4eeaa022bbe641509c285920fd1714.png)

---

<div class="post-metadata">

**Author:** ![hoons](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/hoons/32/77_2.png) [@hoons](https://community.sendbird.com/u/hoons)\
**Post date:** [June 24, 2021, 2:53am UTC](https://community.sendbird.com/t/can-not-receive/2502/11 "2021-06-24T02:53:16Z")

</div>

Hi, thanks for confirming it.  
Assuming that there’s no issue on the SDK side, we’ll need to check on the server whether the push was actually sent or not.

Can you provide the following infos?

- AppId (both UIKit & Calls)
- UserId of connected users on device A & B

---

<div class="post-metadata">

**Author:** ![Piyavate\_HL](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/piyavate_hl/32/1229_2.png) [@Piyavate\_HL](https://community.sendbird.com/u/Piyavate_HL)\
**Post date:** [June 24, 2021, 3:31am UTC](https://community.sendbird.com/t/can-not-receive/2502/12 "2021-06-24T03:31:35Z")

</div>

appid Uikit and Call same : FD6FA551-13D8-42D1-A2F6-62ABE34913D6  
userid A : 147258  
userID B : 147258369

---

<div class="post-metadata">

**Author:** ![Piyavate\_HL](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/piyavate_hl/32/1229_2.png) [@Piyavate\_HL](https://community.sendbird.com/u/Piyavate_HL)\
**Post date:** [June 25, 2021, 10:12am UTC](https://community.sendbird.com/t/can-not-receive/2502/13 "2021-06-25T10:12:13Z")

</div>

Hi Sendbird  
How going on ?

---

<div class="post-metadata">

**Author:** ![hoons](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/hoons/32/77_2.png) [@hoons](https://community.sendbird.com/u/hoons)\
**Post date:** [June 27, 2021, 11:51pm UTC](https://community.sendbird.com/t/can-not-receive/2502/14 "2021-06-27T23:51:51Z")

</div>

@Piyavate_HL  
Yes I’ve check with our server team and we might need some more information regarding this issue. @Chinmaya_Gupta is going to help out.

---

<div class="post-metadata">

**Author:** ![Piyavate\_HL](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/piyavate_hl/32/1229_2.png) [@Piyavate\_HL](https://community.sendbird.com/u/Piyavate_HL)\
**Post date:** [June 28, 2021, 3:18am UTC](https://community.sendbird.com/t/can-not-receive/2502/15 "2021-06-28T03:18:25Z")

</div>

hi

Let me know if you need more information .
