Overview
Live Activities display your app’s most current data on the iPhone Lock Screen and Dynamic Island, allowing users to monitor real-time updates at a glance. With Clix, you can remotely start and update Live Activities through push notifications.Live Activities are available on iOS 16.1 and later. Dynamic Island is available on iPhone 14 Pro
and later models.
Prerequisites
Before setting up Live Activities, ensure the following requirements are met:- iOS Native
- React Native
- Complete Clix iOS SDK setup
- Clix iOS SDK version 1.7.0 or later
- Xcode 14.0 or later
Setup Guide
1. Create Widget Extension
1. Create Widget Extension
Create a Widget Extension to host your Live Activity UI.
- In Xcode, go to File > New > Target.
- Search for Widget Extension and select it.
-
Click Next.

-
Enter a name for your widget (e.g.,
DeliveryWidget). - Check “Include Live Activity” to generate the Live Activity template.
-
Click Finish.

When the “Activate scheme?” dialog appears, select Don’t Activate to continue using your main app scheme.
2. Configure Info.plist
2. Configure Info.plist
Enable Live Activities support in your main app’s Info.plist.
- Open your main app target’s Info.plist.
-
Add a new key:
NSSupportsLiveActivities -
Set the value to YES (Boolean).

3. Define ActivityAttributes
3. Define ActivityAttributes
Define the data structure for your Live Activity.
ActivityAttributes contains static data that doesn’t change, while ContentState holds dynamic data that updates in real-time.4. Design Live Activity UI
4. Design Live Activity UI
Implement the UI for your Live Activity. This includes the Lock Screen view and Dynamic Island presentations.



5. Share ActivityAttributes with Main App
5. Share ActivityAttributes with Main App
6. Initialize Live Activity
6. Initialize Live Activity
Register your
ActivityAttributes type with Clix to enable remote Live Activity starts.- iOS Native
- React Native (AppDelegate.swift)
- React Native (AppDelegate.mm)
Add the setup call in your
AppDelegate.swift after initializing Clix:AppDelegate.swift
Clix.LiveActivity.setup() automatically registers the push-to-start token with Clix servers, enabling remote Live Activity starts.