问题描述
06-02 22:48:43.729 11108-11162/com.gongkong D/ONE SDK: [2016/6/2 22:48:43:739]: log: level: 1, area: 1, RECV: { verison : MSYNC_V1, command : NOTICE, payload : { queue : admin } }06-02 22:48:43.729 11108-11162/com.gongkong D/ONE SDK: [2016/6/2 22:48:43:739]: log: level: 1, area: 1, SEND: { verison : MSYNC_V1, compress_algorimth : 0, command : SYNC, payload : { queue : admin } }06-02 22:48:43.749 11108-11162/com.gongkong D/ONE SDK: [2016/6/2 22:48:43:755]: log: level: 1, area: 1, RECV: { verison : MSYNC_V1, command : SYNC, payload : { status : { error_code : 0 }, metas : [ { id : 203212619681628776, timestamp : 1464878925040, ns : CHAT, payload : { chattype : CHAT, from : admin, to : 5913, contents : [ { contenttype : TEXT, text : 46546565 } ] } } ], next_key : 203212619681628776, queue : admin } }06-02 22:48:43.749 11108-11162/com.gongkong D/ONE SDK: [2016/6/2 22:48:43:756]: log: level: 1, area: 1, SEND: { verison : MSYNC_V1, compress_algorimth : 0, command : SYNC, payload : { key : 203212619681628776, queue : admin } }06-02 22:48:43.749 11108-11162/com.gongkong D/ONE SDK: [2016/6/2 22:48:43:757]: easemob::EMChatManager::callbackReceievedMessages(const std::vector<std::shared_ptr<easemob::EMMessage> >&)::<lambda()> : shouldCreate : 106-02 22:48:43.769 11108-11163/com.gongkong I/hyphenate_jni: _EMAChatManagerListenerImpl onReceiveMessage06-02 22:48:43.769 11108-12118/com.gongkong D/EMChatManager: convID:admin06-02 22:48:43.769 11108-12118/com.gongkong D/msg: type:006-02 22:48:43.769 11108-12118/com.gongkong D/msg: type:006-02 22:48:43.769 11108-11162/com.gongkong D/ONE SDK: [2016/6/2 22:48:43:780]: onMessageReceived06-02 22:48:43.779 11108-11162/com.gongkong D/ONE SDK: [2016/6/2 22:48:43:787]: log: level: 1, area: 1, RECV: { verison : MSYNC_V1, command : SYNC, payload : { status : { error_code : 0 }, queue : admin, is_last : true } }
解决方案
问题解决啦 原来消息回调是子线程,我在 回调里面打印了Toast ,所以总是不显示接收到消息