注册

安卓自定义扩展消息String类型传json数据,如何在ios中解析

安卓自定义扩展消息如下解析
string dataType = message.getStringAttribute ("dataType", null);
if (dataType.equals("comment") {
string json_data = message.getStringAttribute("json_data");
JSONObject jsonObject  = new JSONObject(json_data);
Log.i("php", "接受到消息" + jsonObject.toString());
}
这样即可解析出来,但是在ios的ext扩展中没有这些字段. 我应该如何在ios中解析这些数据?
已邀请:
ios  解析扩展属性http://easemob.com/docs/ios/IOSSDKChat/#resolveexthttp://easemob.com/docs/ios/IOSSDKChat/#resolveext
 
你好,android怎么接收别的app发送过来的扩展消息,再设置成我想要的消息样式

要回复问题请先登录注册