activitykit

Implement and review iOS Live Activities and Dynamic Island experiences.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/DFly7/iOS-FastAPI-Supabase-AI --skill activitykit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: activitykit
Source: https://github.com/DFly7/iOS-FastAPI-Supabase-AI/tree/main/.agents/skills/activitykit
Command: npx skills add https://github.com/DFly7/iOS-FastAPI-Supabase-AI --skill activitykit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Implement, review, and improve Live Activities so time-sensitive app state can be presented as glanceable, real-time widgets on the Lock Screen, Dynamic Island, StandBy, CarPlay, and paired Mac without fragile or leaky lifecycle behavior.

Core Features & Use Cases

  • Activity modeling: defines ActivityAttributes and compact ContentState patterns that keep updates small and serializable.
  • Lifecycle & delivery: covers request, update, end flows, staleDate handling, dismissal policies, and avoiding leaked activities.
  • Dynamic Island & Lock Screen: designs compact, minimal, and expanded regions plus keyline tinting and size considerations for concise presentation.
  • Push-to-update & server integration: describes APNs payload formats, required headers, push token forwarding, push-to-start, and frequent updates settings.
  • Use Case: build delivery tracking, ride-sharing status, sports scores, or workout timers that update from the server and appear reliably on users' Lock Screens.

Quick Start

Use ActivityKit to add a Live Activity that starts with Activity.request, forwards push tokens to your server, and updates the Lock Screen and Dynamic Island via APNs.

Frequently Asked Questions about activitykit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement Live Activities for iOS Lock Screen and Dynamic Island?

Implement Live Activities by defining ActivityAttributes and compact ContentState patterns, then using Activity.request to start, update, and end time-sensitive widgets on the Lock Screen and Dynamic Island. This ensures glanceable, real-time presentation without leaky lifecycle behavior.

What is the APNs push-to-update payload format for Live Activities?

The APNs push-to-update payload requires specific headers and a JSON format containing the ContentState. You must forward push tokens to your server, which then sends updates via APNs to modify active Live Activities remotely and reliably.

How do I design Dynamic Island regions for my iOS app?

Design Dynamic Island regions by creating compact, minimal, and expanded layouts. Apply keyline tinting and size considerations to ensure concise presentation, keeping updates small and serializable for optimal glanceable performance.

Can I use ActivityKit to prevent leaked Live Activities on the Lock Screen?

Yes, ActivityKit prevents leaked Live Activities by managing the request, update, and end lifecycle flows. Proper staleDate handling and dismissal policies ensure activities are dismissed correctly and do not persist erroneously.

What are the iOS 26 scheduling and style options for Live Activities?

iOS 26 introduces new scheduling and style options for Live Activities, allowing precise control over when activities start and how they appear. These options integrate with ActivityAttributes and ActivityContent modeling for enhanced delivery tracking and media playback.