android JMessage 发送消息后,接受方收不到onEvent事件

dylan
2019-12-02 11:39 363 0

发送方日志:
2019-12-02 19:35:45.326 2527-2626/com.moko.mobilemoko D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:300000, threadId:5660
2019-12-02 19:35:45.327 2527-2626/com.moko.mobilemoko D/JIGUANG-JMessage: [RequestingThread] Action - sendCommand
2019-12-02 19:35:45.328 2527-2626/com.moko.mobilemoko D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:290000, times:1, request:cn.jmessage.biz.j.a@e677b1f
2019-12-02 19:35:45.329 2527-2626/com.moko.mobilemoko D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
2019-12-02 19:35:45.524 2550-2682/com.moko.mobilemoko:pushcore I/JIGUANG-JMessage: [JMessageAction] [dispatchMessage] rid = 23588
2019-12-02 19:35:45.534 2527-2541/com.moko.mobilemoko D/JIGUANG-JMessage: [b] processIMData type : im_response
2019-12-02 19:35:45.537 2527-2541/com.moko.mobilemoko D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:3
2019-12-02 19:35:45.602 2527-2890/com.moko.mobilemoko D/JIGUANG-JMessage: [MsgRequest] send message success. id = 5625906912 cTimeMS = 1575286543980

接受方日志:
2019-12-02 19:36:40.846 15783-16024/com.moko.mobilemoko:pushcore I/JIGUANG-JMessage: [JMessageAction] [dispatchMessage] rid = 42504
2019-12-02 19:36:40.862 15729-15769/com.moko.mobilemoko D/JIGUANG-JMessage: [b] processIMData type : im_response
2019-12-02 19:36:40.872 15729-16005/com.moko.mobilemoko D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:0, threadId:5229
2019-12-02 19:36:40.873 15729-16005/com.moko.mobilemoko D/JIGUANG-JMessage: [RequestingThread] Action - sendCommand
2019-12-02 19:36:40.874 15729-16005/com.moko.mobilemoko D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:-10000, times:1, request:cn.jmessage.biz.j.a@24ad7c3
2019-12-02 19:36:40.874 15729-15769/com.moko.mobilemoko D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:14
2019-12-02 19:36:40.875 15729-15769/com.moko.mobilemoko I/JIGUANG-JMessage: [ResponseProcessor] messageID = 5625914888
2019-12-02 19:36:40.875 15729-16005/com.moko.mobilemoko D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100

两份日志不是同一条信息打出来的,是不同的信息打出来的

聊天室内消息不能及时刷新,看代码是因为EventBus没有收到事件,EventBus注册时成功的
退出聊天室后,再次重新进入,能看到地方发送的信息

请问这个是什么原因导致的

1个回答

热门排序
  • 你使用的 Android SDK 的版本是多少? 你的这个现象是 AB在同一个聊天室,A发了一条消息,但 B 没有收到,B退出聊天室重进才能看到这条消息是吗? B 在聊天室多待一会是否可以收到(看是否消息延迟以及延迟了多久) 该问题是否是必 展示全部