apns2 icon indicating copy to clipboard operation
apns2 copied to clipboard

Live Activity support added

Open ozamanav opened this issue 2 years ago • 2 comments
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 😄

ozamanav avatar Dec 19 '22 07:12 ozamanav

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.

jan-xyz avatar Dec 28 '22 17:12 jan-xyz

FYI I've submitted https://github.com/sideshow/apns2/pull/219 based on this PR

froodian avatar Jan 30 '23 20:01 froodian

Closing this as i've merged @froodian's version. Thanks

sideshow avatar Aug 08 '24 09:08 sideshow