feat(ios): add dynamic Live Activities - #239
Draft
V3RON wants to merge 24 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this?
This adds experimental Dynamic Live Activities for iOS. Applications bundle named Live Activity definitions with the installed release and send only JSON-compatible props through ActivityKit, while the existing server-rendered Live Activity engine and payload format remain supported.
How does it work?
The Expo plugin validates declared definitions and generates a distinct ActivityKit attributes type, configuration, catalog registration, and bundle entry for each definition. Metro serves definitions from a dedicated development route and produces isolated release assets. The shared native runtime renders complete Live Activity variants on device, provides explicit dynamic start and update APIs, preserves unified lifecycle behavior, validates ActivityKit payload limits, and reports recoverable render failures through an App Group-backed event path.
Why is this useful?
Dynamic updates carry only application props instead of a fully rendered UI payload, reducing payload size while retaining compatibility with active legacy Live Activities and older releases. Per-definition ActivityKit types let unsupported releases reject remote starts safely, and capability discovery helps servers route the correct payload format.