Build or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
ActivityKit owns real-time, glanceable Live Activities on the Lock Screen and
Dynamic Island. Route ordinary timeline widgets to widgetkit and generic APNs
setup to push-notifications; keep the Live Activity lifecycle, token handling,
and payload contract here.
Modern ActivityContent lifecycle APIs require iOS 16.2+ unless noted. The
server's aps.content-state must decode into the exact
ActivityAttributes.ContentState shape, including coordinated custom date or
range encoding.
For a new Live Activity:
NSSupportsLiveActivities = YES.ActivityAttributes from a small, Codable, Hashable
ContentState; encode a representative server fixture before integrating APNs.ActivityConfiguration for the Lock Screen first, then compact,
minimal, and expanded Dynamic Island presentations.ActivityAuthorizationInfo.areActivitiesEnabled, request with
ActivityContent, and exercise local update plus every terminal end path.Keep static identity in the outer attributes and only changing display state in
ContentState:
import ActivityKit
struct DeliveryAttributes: ActivityAttributes {
let orderNumber: Int
struct ContentState: Codable, Hashable {
var stage: String
var estimatedDelivery: ClosedRange<Date>
}
}
Use ActivityContent for request, update, and end. Set staleDate whenever the
display can become misleading, and render a safe fallback from
ActivityViewContext.isStale. Treat Lock Screen content as public: never place
secrets or sensitive detail in attributes or state.
.default dismissal
linger (up to 4 hours after ending)..token for per-activity remote updates. Observe
activity.pushTokenUpdates for the full activity lifetime because tokens rotate.Activity<Attributes>.pushToStartTokenUpdates; it is not an
app APNs token or an activity update token. Its payload requires an alert.apns-push-type: liveactivity. Device-token
pushes use <bundle-id>.push-type.liveactivity as the topic. Priority controls
delivery urgency; only aps.alert requests visible alert behavior.NSSupportsLiveActivitiesFrequentUpdates requests a larger system-managed
budget, not a guaranteed cadence. Check frequentPushesEnabled.| Feature | Availability and constraint |
|---|---|
| Push-to-start | iOS 17.2+ |
style: request parameter | iOS 18+; .standard for persistent work, .transient only for short-lived expanded presentation |
| Channel/broadcast updates | iOS 18+; update/end only, not start |
| Supplemental activity families | iOS 18+ |
| Scheduled start | iOS 26+ |
| Paired Mac and CarPlay presentation | iOS 26+; validate compact layouts and noninteractive CarPlay behavior |
Use availability guards around each newer API. Read the lifecycle reference for complete request and payload examples rather than combining signatures from different OS branches.
contentState request/update/end overloads instead of
ActivityContent.aps.alert.ContentState have a small, tested Codable contract.NSSupportsLiveActivities = YES and authorization is checked.ActivityContent.content-state fixtures are validated.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
live-activities, dynamic-island, ios, swift, push-notifications
/all-ios-skills:activitykitfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skills95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement./Other plugins' skills for the same job