Edit in GitHubLog an issue

Live Activities - API reference

This document lists the public APIs available in the Messaging extension for implementing Live Activities with Adobe Journey Optimizer.

registerLiveActivities

The registerLiveActivities API registers one or more Live Activity attribute types with the Messaging extension. Once registered, the extension automatically:

  • Collects push-to-start tokens (iOS 17.2+)
  • Collects Live Activity update tokens
  • Manages lifecycle events and tracking
  • Forwards tokens to Adobe Experience Platform

This enables Adobe Journey Optimizer to remotely start and update Live Activities via push notifications.

This API must be called after the Messaging extension has been registered with MobileCore. You should register all of your app's LiveActivityAttributes types that you want to be managed by Adobe Journey Optimizer.

Swift

Syntax

Copied to your clipboard
static func registerLiveActivities(_ activityTypes: [any LiveActivityAttributes.Type])
  • activityTypes is an array of types conforming to the LiveActivityAttributes protocol. Each type represents a Live Activity that will be monitored for push-to-start tokens (iOS 17.2+), activity update tokens, and lifecycle events.

Example

Copied to your clipboard
import AEPMessaging
import AEPMessagingLiveActivity
import ActivityKit
// Register a single Live Activity type
if #available(iOS 16.1, *) {
Messaging.registerLiveActivities([FoodDeliveryLiveActivityAttributes.self])
}
// Register multiple Live Activity types
if #available(iOS 16.1, *) {
Messaging.registerLiveActivities([
AirplaneTrackingAttributes.self,
FoodDeliveryLiveActivityAttributes.self,
GameScoreLiveActivityAttributes.self
])
}

Objective-C

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2026 Adobe. All rights reserved.