环信单聊 android可以发送消息却接受不到消息(后台单聊上行消息有记录). 和网页测试端发消息没问题.
环信单聊 客户端发送消息后台可以监测到单聊上行消息增加, 却接收不到用户发过来的消息(用后台发送测试消息客户端可以接收到).
protected void sendMessage(EMMessage message)
{ if (message == null) { return; } if (chatFragmentHelper != null) { //set extension chatFragmentHelper.onSetMessageAttributes(message); }
if (chatType == EaseConstant.CHATTYPE_GROUP)
{ Log.e("setChatType", "ChatType.GroupChat"); message.setChatType(ChatType.GroupChat); }
else if (chatType == EaseConstant.CHATTYPE_CHATROOM) { message.setChatType(ChatType.ChatRoom); Log.e("setChatType", "ChatType.ChatRoom"); }
Log.e("setChatType", "999999999"); message.setMessageStatusCallback(messageStatusCallback); // Send message. EMClient.getInstance().chatManager().sendMessage(message); //refresh ui if (isMessageListInited) { messageList.refreshSelectLast(); } }
protected void sendMessage(EMMessage message)
{ if (message == null) { return; } if (chatFragmentHelper != null) { //set extension chatFragmentHelper.onSetMessageAttributes(message); }
if (chatType == EaseConstant.CHATTYPE_GROUP)
{ Log.e("setChatType", "ChatType.GroupChat"); message.setChatType(ChatType.GroupChat); }
else if (chatType == EaseConstant.CHATTYPE_CHATROOM) { message.setChatType(ChatType.ChatRoom); Log.e("setChatType", "ChatType.ChatRoom"); }
Log.e("setChatType", "999999999"); message.setMessageStatusCallback(messageStatusCallback); // Send message. EMClient.getInstance().chatManager().sendMessage(message); //refresh ui if (isMessageListInited) { messageList.refreshSelectLast(); } }
没有找到相关结果
已邀请:
1 个回复
转角45°、嫣然一笑
赞同来自: luzhu