注册

发送 REST 消息, iOS 端 APNs 内容显示不完整 [已解决]

REST 消息为: (实际发送的内容不同)
{
"target_type":"users",
"target":[
"6006"
],
"msg":{
"type":"txt",
"msg":"hello from rest"
},
"from":"6001",
"ext":{
"em_apns_ext":{
"em_push_title":"自定义信息"
}
}
}
 




huanxin_no_sender_content.jpg


 



但是如果消息通过 

EMChatManagerDelegate

 的方法:
messagesDidReceive

就可以正常获得所有消息内容, 另外设置的 pushOptions 为:
pushOptions?.displayStyle = EMPushDisplayStyleMessageSummary

环信最新SDK, Xcode 8.3.3, iOS 10.3.2, Swift 3.1


已邀请:
如果是通过em_push_title字段来传入自定义提示,那么需要在:号前加上发送方的昵称,存在em_push_title字段后,环信后台不会在根据发送方的id来添加推送昵称

 

要回复问题请先登录注册