Apple push notifications and Emoji characters

2019-03-11 12:37发布

问题:

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"