title: Emojis support in Apple push notification
body: <p>I am working on iPhone app named "INTERSTIZIO".In this I have implemented functionality like chat between users.In this user can send text,location and text with emojis symbol.If the app is not in open mode at receiver end then from backend push is generated and display to receiver.I am able to display message in push like "UserName : Hello..." but I also want to display emojis symbol, like "UserName : Hay :)" in push message so anyone have idea regarding how I can achieve this type of push message using emojis code(like for smile apple code is \u263a) of apple?</p>
  
  <p>I have followed the solution given in this link : <a href="http://code.iamcal.com/php/emoji/" rel="nofollow noreferrer">http://code.iamcal.com/php/emoji/</a>
  But it returns the same code that I have passed in function.Its working fine on web pages but not in push message.</p>
  
  <p>Here I am attaching one screen shot of the push how it looks at my end.In it you can see that I have displayed smiley and lighting symbol but its displayed using HTML supported code like below code of PHP script:</p>
  
  <pre><code>$lightning = html_entity_decode('&amp;#57661;',ENT_NOQUOTES,'UTF-8');  
  //add this to the 'alert' portion of your APNS payload:  
  $message = "You just got the {$lightning}SHOCKER{$lightning}!";
  </code></pre>
  
  <p>But in my case I have displayed inbuilt emojis keyboard from apple and using below code I am able to get emojis code : </p>
  
  <pre><code>//store code of emojis at backend  
  NSData *data = [txtspeech.text dataUsingEncoding:NSNonLossyASCIIStringEncoding];  
  NSString *valueUnicode = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
  
  //Display emojis in mobile chat window
  NSData *data = [objchat.strchat dataUsingEncoding:NSUTF8StringEncoding];  
  NSString *valueEmoj = [[NSString alloc] initWithData:data encoding:NSNonLossyASCIIStringEncoding];  
  cell.txtchat.text=valueEmoj;
  </code></pre>
  
  <p>Using above code I am able to store and display emojis in chat window but if receiver user have closed app then in push message I am not able to display emojis symbol in push message.</p>
  
  <p>Thanks</p>
  
  <p><img src="https://i.stack.imgur.com/ct1m7.jpg" alt="enter image description here"></p>