Add API for registering Live Activity push-to-start token#2219
Conversation
AIT-465 Add iOS-only API on ARTPush for registering an Apple Live Activity push-to-start token (Activity.pushToStartTokenUpdates) with Ably: `registerPushToStartToken`: adds the token to an already-activated device, syncing the updated recipient to Ably via the existing PATCH path.
WalkthroughThis PR introduces a "pushToStart" APNS device token type for Live Activity support. It adds a new constant, extends local device storage load/reset logic, adds ChangesPush-to-start token feature
Estimated code review effort: 2 (Simple) | ~12 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
From the app description: What do you mean? It calls |
@maratal I just forgot to update readme, original example was without ably integration, I then replaced it |
Changes Introduced
registerPushToStartToken: Allows the addition of a token to an already-activated device and syncs the updated recipient to Ably using the existing PATCH path.Example App
https://github.com/ttypic/liveactivity-example
Docs
ably/docs#3464
Summary by CodeRabbit