Live Activities
Live Activities show glanceable, persistent, current-state information about an ongoing event on the Lock Screen, in the Dynamic Island, in StandBy, on Apple Watch Smart Stack (with one modifier), and, from a paired iPhone, automatically in CarPlay and the Mac menu bar. They render in a widget extension but the lifecycle is driven by ActivityKit from your app and your server. visionOS has no Live Activities, even for compatible iPhone and iPad apps.
Two skills in the axiom-integration suite: skills/live-activities.md (discipline) and skills/live-activities-ref.md (API reference).
When to Use
Use this skill when you're:
- Starting, updating, or ending a Live Activity (delivery, rideshare, sports, flights, workouts)
- Designing the
ActivityAttributes/ContentStatesplit, or hitting the 4KB limit - Choosing an update mechanism: local, per-activity push, push-to-start, or broadcast
- Building Dynamic Island presentations or adding interactivity with App Intents
- Fixing "zombie" activities that won't dismiss, or authorization failures
- Surfacing a Live Activity on Apple Watch, CarPlay, or the Mac menu bar
- Starting a Live Activity from a Mac app, which appears in the Dynamic Island on a Mac that has one, or in the menu bar on other Macs
For static/timeline widgets and Control Center controls, see extensions-widgets. For APNs setup, see push-notifications.
Example Prompts
- "How do I start and update a Live Activity?"
- "Why won't my Live Activity dismiss after the event ends?"
- "How do I build a Dynamic Island layout?"
- "How do I broadcast score updates to thousands of Live Activities with one push?"
- "How do I start a Live Activity from a push when my app isn't running?"
- "My Live Activity push updates aren't showing up — what's wrong?"
Key Concepts
The app/widget split
ActivityAttributes holds static data (set once at start); its nested ContentState holds the dynamic data that changes via update(_:) or a push. The widget extension only renders what it receives — it cannot fetch network state.
Lifecycle and dismissal
ActivityState is .pending, .active, .stale, .ended, or .dismissed. Always end(_:dismissalPolicy:) when the event finishes (.immediate, .default ~4 hours, or .after(date)) — activities linger until you do.
Activity.request is throwing, not async
guard ActivityAuthorizationInfo().areActivitiesEnabled else { return }
let activity = try Activity.request(attributes: attrs,
content: ActivityContent(state: initial, staleDate: nil),
pushType: nil) // nil / .token / .channel(id)
await activity.update(ActivityContent(state: newState, staleDate: nil))
await activity.end(ActivityContent(state: final, staleDate: nil), dismissalPolicy: .default)Updates: local → push → broadcast
Ship local update(_:) first (no entitlement), add per-activity .token push when approved, use push-to-start to launch from a push, and broadcast .channel(id) when one event has a large audience.
Live Activities from Mac apps
Mac apps can start their own Live Activities, which appear in the Dynamic Island on a Mac that has one and in the menu bar on other Macs. A universal app's existing Live Activity works unchanged. On the Mac, the ActivityConfiguration content view becomes the expanded menu-bar view. It needs the Xcode 27.3 SDK, which makes ActivityKit available from macOS 27.3 and Mac Catalyst 27.3. On the macOS 27.3 beta, a sandboxed app, which includes every Mac App Store app, can't start one; the skill covers a development-only workaround for testing during the beta.
Keep ContentState on default Codable
Custom CodingKeys/encoder strategies serialize on-device but silently fail to decode push payloads.
Common Mistakes
| Mistake | Cost | Fix |
|---|---|---|
Custom Codable strategy on ContentState | Pushes silently fail to decode | Use default Codable keys |
Never calling end(_:dismissalPolicy:) | Activities linger for hours | End with an explicit policy |
Treating .dismissed as terminal | A later update revives it | Call end |
Image Data in ContentState | Blows the 4KB limit | Store IDs / asset-catalog names |
| Broadcast push to start an activity | Doesn't work | Use push-to-start tokens |
Related
- extensions-widgets – Static/timeline widgets and Control Center controls (shares the widget extension)
- push-notifications – APNs auth and payload mechanics for push/broadcast updates
- controls-and-live-activities – The Apple Watch side of Live Activities
- touch – Designing Mac apps for the touch display that hosts the Mac's Dynamic Island
Resources
WWDC: 2023-10184, 2023-10194, 2023-10185, 2024-10069, 2024-10068, 2025-230
Docs: /activitykit, /activitykit/activity, /widgetkit/activityconfiguration, /widgetkit/dynamicisland