问题描述
SEND: <message type="chat" to="xingfuke#yuanlai_36dcc5b44ff86be70150039996940065@easemob.com" id="150842d342a"><body>{"to":"36dcc5b44ff86be70150039996940065","bodies":[{"type":"txt","msg":"1212"}],"from":"13671509957"}</body></message>2015-10-20 15:36:06:546 EaseMobDemo[13424:8803] RECV: <message from='easemob.com' to='xingfuke#yuanlai_13671509957@easemob.com/mobile'><body>150842d342a</body><received xmlns='urn:xmpp:receipts' mid='119235879544816068'>150842d342a</received></message>SEND: <message type="chat" to="xingfuke#yuanlai_402881e74e4ef5c7014e4ef5cf820001@easemob.com" id="1508429c84b"><body>{"to":"402881e74e4ef5c7014e4ef5cf820001","bodies":[{"type":"txt","msg":"没,都"}],"from":"15537188117"}</body></message>2015-10-20 15:32:22:274 EaseMobDemo[1491:c04f] RECV: <message from='easemob.com' to='xingfuke#yuanlai_15537188117@easemob.com/mobile'><body>1508429c84b</body><received xmlns='urn:xmpp:receipts' mid='119234916041884144'>1508429c84b</received></message>2015-10-20 15:33:02:979 EaseMobDemo[1491:b07] begin insert message to chatter::402881e74e4ef5c7014e4ef5cf820001, messageId::150842a67832015-10-20 15:33:03:003 EaseMobDemo[1491:b07] end insert message with account::15537188117, to chatter::402881e74e4ef5c7014e4ef5cf820001, messageId::150842a6783, result::YES为什么收不到消息啊 发送的服务器能拿到 我是集成的单聊 按视频上的弄的
解决方案
接收方和发送方是同一个appKey吗,方便的话提供一下接收方的日志。
解决方案二:
恩,看是不是方便导出接收方的log提供一下,log位置在app/library/EaseMobLog
解决方案三:
我看你发消息的日志上面,发消息是15:32之后,你私信给我的日志截取到的时间到最后才15:30。你先确认双方是不是同一个appKey,可以把demo的appKey换成你的。然后用你的账号登录demo,这时候看demo是不是能够接收到。