问题描述
在发送消息的时候,已经给扩展消息赋值,为什么在解析的时候ext为空呢?
解决方案
conversation.ext和message.ext不是同一个东西。conversation.ext只是在本地处理的,你可以根据这个自定义操作你的conversation。
解决方案二:
给ext赋值的动作要确保在发送的动作之前
解决方案三:
你贴一下你发送时的代码
解决方案四:
接收方didReceiveMessage回调里打印看一下 有没有ext。
解决方案五:
ext应该没有赋值成功。
解决方案六:
赋成功了啊我程序退出后 在进来直接获取程序列表但是我在列表界面打印的时候是null
解决方案七:
消息获取到了吗?
解决方案八:
没有哎
解决方案九:
是在发送消息的时候赋值的
解决方案十:
- (void)sendTextMessage:(NSString *)textMessage{ NSDictionary *ext = @{@"name" : @"zhangsan"}; EMMessage *tempMessage = [ChatSendHelper sendTextMessageWithString:textMessage toUsername:_conversation.chatter messageType:[self messageType] requireEncryption:NO ext:ext]; [self addMessage:tempMessage];}
解决方案十一:
ok 搞定了,谢谢了,兄弟。