14.2.0
Added
- Adds methods to observe all key events and errors in the ActivityKit API, enabling observation of real-time state and error events from the SDK's Live Activity lifecycle.
- Adds
Braze.LiveActivities.UpdateEvent, a new enum covering activity and token lifecycle events (e.g.started,active,dismissed,stale,ended,contentUpdated,pushTokenUpdated) as well as Braze SDK operation events (trackingStarted,trackingResumed,pushTokenFlushed). - Adds
Braze.LiveActivities.ErrorEvent, a new enum covering observation failures, token registration failures (withisTransientfor retry logic),activityNotFound, andinvalidPushTokenTag. - Adds
subscribeToStateUpdates(_:)andsubscribeToErrors(_:)methods onBraze.LiveActivitiesto register callbacks for the above events. Both return aBraze.Cancellableto remove the subscription. - For detailed usage, refer to the Braze developer guide or the Live Activities tutorial.
- Adds
Fixed
- Improves reliability of Live Activity push token updates during app background and foreground transitions, including cold start scenarios where push-to-start activities may not have received token updates.
- Content cards now filter out invalid cards so users can still view remaining valid cards.
- Previously, if any of the cards were invalid in the content card sync, the entire sync would be dropped and no cards would be added.
- This update brings parity with the behavior on Android and Web.