logo
On this page

Express SDK: Why can't I receive a callback after sending a real-time message?

2022-11-16
Products / Plugins:Video Call / Audio Call / Live streaming
Platform / Framework:All

Problem Cause

There may be the following situations:

  • The message receiver has not set the corresponding callback for the send message interface.
  • The message sender and message receiver are not using the same AppID.
  • The message sender and message receiver are not in the same room, that is, the room ID is different.
  • The message sender and message receiver are not online at the same time, and are not both in the "successfully logged in to the room" state.
  • The message sender cannot receive real-time messages sent by this end.

Solution

For the situations mentioned above, developers must meet the following requirements when implementing real-time messaging functionality:

  • The message receiver has set the corresponding callback for the send message interface.
  • The message sender and message receiver need to use the same AppID.
  • The message sender and message receiver need to be in the same room, that is, use the same room ID.
  • The message sender and message receiver need to be online at the same time, that is, both need to be in the "successfully logged in to the room" state.

In addition, developers need to pay attention to the fact that the message sender cannot receive real-time messages sent by this end.

PlatformMessage TypeSend Message InterfaceReceive Message CallbackRelated Documentation
iOSBroadcast MessagesendBroadcastMessageonIMRecvBroadcastMessageReal-time Messaging and Signaling
Barrage MessagesendBarrageMessageonIMRecvBarrageMessage
Custom MessagesendCustomCommandonIMRecvCustomCommand
AndroidBroadcast MessagesendBroadcastMessageonIMRecvBroadcastMessageReal-time Messaging and Signaling
Barrage MessagesendBarrageMessageonIMRecvBarrageMessage
Custom MessagesendCustomCommandonIMRecvCustomCommand
macOSBroadcast MessagesendBroadcastMessageonIMRecvBroadcastMessageReal-time Messaging and Signaling
Barrage MessagesendBarrageMessageonIMRecvBarrageMessage
Custom MessagesendCustomCommandonIMRecvCustomCommand
WindowsBroadcast MessagesendBroadcastMessageonIMRecvBroadcastMessageReal-time Messaging and Signaling
Barrage MessagesendBarrageMessageonIMRecvBarrageMessage
Custom MessagesendCustomCommandonIMRecvCustomCommand
WebBroadcast MessagesendBroadcastMessageIMRecvBroadcastMessageReal-time Messaging and Signaling
Barrage MessagesendBarrageMessageIMRecvBarrageMessage
Custom MessagesendCustomCommandIMRecvCustomCommand
Mini ProgramBroadcast MessagesendBroadcastMessageIMRecvBroadcastMessageReal-time Messaging and Signaling
Barrage MessagesendBarrageMessageIMRecvBarrageMessage
Custom MessagesendCustomCommandIMRecvCustomCommand
LinuxBroadcast MessagesendBroadcastMessageonIMRecvBroadcastMessageReal-time Messaging and Signaling
Barrage MessagesendBarrageMessageonIMRecvBarrageMessage
Custom MessagesendCustomCommandonIMRecvCustomCommand
React NativeBroadcast MessagesendBroadcastMessageIMRecvBroadcastMessageReal-time Messaging and Signaling
Barrage MessagesendBarrageMessageIMRecvBarrageMessage
Custom MessagesendCustomCommandIMRecvCustomCommand

Previous

On the Web platform, how to set mirror mode for Express?

Next

Why is opening the camera not supported when the app is in the background?

On this page

Back to top