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.
Related Links
Reference of send real-time message interface callbacks for each platform
