jpoz / APNS

An Apple Push Notification Service gem
MIT License
543 stars 195 forks source link

Emoji in alert are not working #51

Open zeeshangulzar opened 3 years ago

zeeshangulzar commented 3 years ago

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 commented 3 years ago

@jpoz Any help would be much appreciated.