注册

加了 6群,让我通过申请啦

先让我通过申请嘛! 再就是,我想知道如何判断消息发送成功。

/**
* 消息送达BroadcastReceiver
*/
private BroadcastReceiver deliveryAckMessageReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
abortBroadcast();

String msgid = intent.getStringExtra("msgid");
String from = intent.getStringExtra("from");
EMConversation conversation = EMChatManager.getInstance().getConversation(from);
if (conversation != null) {
// 把message设为已读
EMMessage msg = conversation.getMessage(msgid);
if (msg != null) {
msg.isDelivered = true;
}
}

adapter.notifyDataSetChanged();
}
};

是通过上面这个广播吗?那发送失败怎么判断呢?

已邀请:
发送消息有回调,走到onSuccess了就成功了
> forum.php?mod=redirect&goto=findpost&pid=1685&ptid=817
发送消息有回调,走到onSuccess了就成功了


我想问下,addMessage会将新消息保存到内存,还是内存和本地数据库?如果addMessage只是将消息保存到内存,那什么时候会保存到数据库?
> forum.php?mod=redirect&goto=findpost&pid=1685&ptid=817
发送消息有回调,走到onSuccess了就成功了


还有个问题,我想加交流群,为什么总是没通过申请

要回复问题请先登录注册