Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "start" event for Live Activities #1049

Merged
merged 1 commit into from
Feb 17, 2024
Merged

Conversation

jchambers
Copy link
Owner

Evidently, the process for starting Live Activities has changed in the latest iOS release. The old documentation (https://developer.apple.com/documentation/activitykit/update-and-end-your-live-activity-with-remote-push-notifications) appears to have been replaced with https://developer.apple.com/documentation/activitykit/starting-and-updating-live-activities-with-activitykit-push-notifications, which now calls for explicit "start" events and makes no mention of "end" events.

It's unclear to me if this change is a replacement for the old behavior, an optional replacement, or a mandatory replacement. In any case, I think the safest thing to do is simply to add the new "start" event.

This fixes #1047.

@pushly-cj
Copy link

Just confirming that the "start" event is a new event introduced in iOS 17.2 that allows a Live Activity to be started via an APNS Live Activity Notification whereas before you could only start the activity via your app and perform "update" events via APNS. I.e., The "update" event is still relevant and separate from "start".

We are seeing that the "end" event is still supported via APNS regardless of it not being in the documentation.

@jchambers
Copy link
Owner Author

@pushly-cj Thank you—this is very helpful!

@jchambers jchambers merged commit a45febb into main Feb 17, 2024
48 checks passed
@jchambers jchambers deleted the start_live_activity_event branch February 17, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing "start" enumeration com.eatthepath.pushy.apns.util.LiveActivityEvent
2 participants