APNS
APNS copied to clipboard
Emoji in alert are not working
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'}} )
```
@jpoz Any help would be much appreciated.