Closed atkit closed 7 years ago
Will this be merged soon?
it needs to be merged by @markquezada
@atkit @maddox wish I could but I don't have commit access. Still waiting on @mattt.
+1!
@mattt can you please take a look? / Give an update :) Thanks
I went ahead without this per the following:
# Create a notification that alerts a message to the user, plays a sound, and sets the badge on the app
notification = Houston::Notification.new(device: token)
notification.alert = "Hello, World!"
notification.badge = 57
notification.sound = "sosumi.aiff"
notification.category = "INVITE_CATEGORY"
notification.content_available = true
# the 'attachment-url` key in this dictionary can be custom named and parsed by your ios app
notification.custom_data = { 'aps' => { 'mutable-content' => 1 }, 'attachment-url' => "https://whatever.com/whateverphoto.jpg" }
APN.push(notification)
Implemented in #118 and #137.
Convenience change for media attachments on iOS10.
Also possible to achieve the same result with: