Apple push notifications and Emoji characters

守給你的承諾、 提交于 2019-12-09 04:20:09

问题


I recently found this very interesting article on APNS and Emoji characters: EASY APNS - Just for fun

It contains a list with all supported Emojis. However, I couldn't get them to display in my push notifications. All I get is the code, not the image. For example, if I add \ue415 (a smiley) to my message, I never see the image, just the code.

Any idea what I'm doing wrong?


回答1:


NSString *emoji = [NSString stringWithFormat:@"%C", 0xe415];



回答2:


check out this site http://code.iamcal.com/php/emoji/

he does the emoji in php.

i use this command to achieve a emoji on the iphone.

emoji_unified_to_softbank("\xee\x80\xac");

Q




回答3:


If you happen to be using Rubymotion for iOS dev the you can use the softbank code converted like this: softbank code: U+E04A Rubymotion string sent as push: "This is a sun with rays emoji \ue04a"



来源:https://stackoverflow.com/questions/2441027/apple-push-notifications-and-emoji-characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!