Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Emoji in alert are not working #51

Open
zeeshangulzar opened this issue Mar 12, 2021 · 1 comment
Open

Emoji in alert are not working #51

zeeshangulzar opened this issue Mar 12, 2021 · 1 comment

Comments

@zeeshangulzar
Copy link

zeeshangulzar commented Mar 12, 2021

I am using apns on a legacy app with following specs. We can't upgrade it rails latest version, so we are looking for solution like upgrading apns only or some monkey patch if possible.

Rails 3.2
Ruby 1.9.3
APNS 1.0.0
mysql 0.3.18

I am not able to send emoji to iOS application in alert dictionary. Emojis are saved in a field along text data in table.

APNS.send_notification(device_token, alert: { title: "New Room!", body: "We can talk about anything here \\ud83c\\udfc0\\ud83c\\udfe0\\ud83d\\udcb4" }, badge: 0, sound: "default", other:
       { info: { type: 'new_room', bug_id: 1, bug_name: "We can talk about anything here \\ud83c\\udfc0\\ud83c\\udfe0\\ud83d\\udcb4", :bug_creator_id => 5, bug_creator_name: 'Zeeshan'}} )
       ```
@zeeshangulzar
Copy link
Author

@jpoz Any help would be much appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant