Question - I tried to include emojis in the text message using the /createMessage API. Is it possible to include emoji?
Answer - Yes. Pushwoosh accepts standard UTF-8 emoji characters in /createMessage (and Messaging API v2) payloads.
Simply paste the actual emoji character into the content field of your request and make sure the request body is sent as UTF-8:
{"request":{"application":"XXXXX-XXXXX","auth":"YOUR_API_TOKEN","notifications":[{"send_date":"now","content":"Flash sale 🔥 50% off today 🎉"}]}}
Notes:
- Use the real emoji glyph (copy it from an emoji picker), not a text shortcode such as
:smile:— shortcodes are not converted and will be delivered as literal text. - Send the request with
Content-Type: application/jsonand a UTF-8 encoded body. Unicode escape sequences (\ud83d\ude00) are also valid JSON and work as well. - Rendering depends on the device/OS emoji font, so the same emoji may look slightly different across platforms.
See also: Why do emojis appear as text codes (e.g., :smile:) in my notifications?
Comments
0 comments
Please sign in to leave a comment.