Edit in GitHubLog an issue

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.