-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem to send emoji to Push Notification #7
Comments
That's not how you escape UTF-8 in PHP. Try this:
You can find the UTF-8 bytes for a codepoint using this: http://unicodey.com/?cp=e415 |
Oh, iPhones (since iOS) now use unified emoji, so you really want:
Which is codepoint U+1F604 |
Cal, can you explain it with more details, please? |
|
We try to send emoji from php webservice. |
It looks like ApnsPHP does some special handling for Unicode. Try this:
Apns expects 4-nibble |
I am trying to send push notifications with emoji using php. For sending push notifications, I started with this tutorial and have got the push notifications working. Here are some code snippets I tried...
What I should be getting here is a cloud emoji followed by the string 'Check'. But what I get is simply the string,
The reason could be that the payload has to be converted from php array to json-encoded format. What am I doing wrong here? Can somebody help me out with this? |
Hi dudu I try a lot of tutoriais, but the only step which works is change mysql encoding: Try this: |
Hi alex, I did not make use of mysql anywhere. The emoji code is hard-coded into the payload in php code. |
vikkun: it all depends on the library doing the push notifications. Apple wants to recieve JSON looking like this:
so try the following PHP:
|
iamcal: After referring your earlier comment, I am trying to use the unified emoji codes. But
Is there some workaround to this situation? |
It's as simple as using double quotes:
After calling
...which is correct JavaScript unicode escaping. |
Does emoji works with APNS Java code? If yes, could you please share code snippet ? |
Hi everybody, I am trying to send pushnotification for ios app.
end I am having a problem to send emoji on this push.
I have this text on my database:
"\ue415 Vei na boa vou dar um tiro nesse push"
when I try to send this message to APN(https://github.com/duccio/ApnsPHP) it arrives
"? Vei na boa vou dar um tiro nesse push"
Someone know how can I convert this?
The text was updated successfully, but these errors were encountered: