简体   繁体   English

设备无法将表情符号检测到收到的推送通知中

[英]Device unable to detect emoji into received push notification

在此处输入图片说明

No idea why device not detecting emoji which I am getting into push notification from server, But I am able to convert emoji unicode in to emoji to show on text view or label. 不知道为什么设备没有检测到我正在从服务器发送到推送通知中的表情符号,但是我能够将表情符号unicode转换为表情符号以显示在文本视图或标签上。 Below is the code: 下面是代码:

NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding]; NSString *newMsg = [[NSString alloc] initWithData:data encoding:NSNonLossyASCIIStringEncoding]

Fixed issue with Code in php because we are not decoding the message, Please see the adde code: 修正了php中代码的问题,因为我们没有解码消息,请参见adde代码:

$string = "The fact \ud83d\ude05"; 
$message = json_decode('"'.$string.'"'); 

And now device able to detect emoji 现在设备能够检测表情符号

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM