apns2
apns2 copied to clipboard
Live Activity support added
trafficstars
Changes
- added test util TestPushTypeLiveActivityHeader
- new EPushType added (PushTypeLiveActivity)
- In aps payload added following 4 new payload keys (ContentState, DismissalDate, Event, Timestamp)
- Added set functions to set this values inside apns object
Let me know if you guys have any questions 😄
Hey @ozamanav I started playing around with your fork, and noticed that the timestamps are float64, is there a specific reason for it to not use int64? I am using float64(time.Now().Unix()) to get a float which seems a bit strange, given that it gets JSON encoded anyways.
FYI I've submitted https://github.com/sideshow/apns2/pull/219 based on this PR
Closing this as i've merged @froodian's version. Thanks