ostinelli / apnotic

A Ruby APNs HTTP/2 gem able to provide instant feedback.
MIT License
480 stars 96 forks source link

Add thread-id to Apnotic::Notification #50

Closed yuki24 closed 6 years ago

yuki24 commented 7 years ago

According to Apple's official documentation, you could send the thread-id key over to APNs as an identifier for grouping notifications, but I noticed the Apnotic::Notification class doesn't allow for assigning it.

This PR adds the ability to set a value to the thread-id key so all the APS dictionary keys in their offitial doc will be covered and sent over to APNs.

ostinelli commented 7 years ago

Thank you. Can you please also add this into the README file?

yuki24 commented 6 years ago

Sorry for the delay, but I just rebased and updated the README.

ostinelli commented 6 years ago

Added, thank you.