chvanikoff / apns4ex

APNS for Elixir
MIT License
70 stars 23 forks source link

Handle message expiry #33

Closed ramhoj closed 8 years ago

ramhoj commented 8 years ago

https://github.com/chvanikoff/apns4ex/blob/master/lib/apns/message.ex#L5 from what I understand this should be a calculated offset from epoch. That is if the message is to expire in 1 minute it should be sent as epoch + 60

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/APNsProviderAPI.html