What problem does it solve?
SharePlay development can be complex, requiring careful orchestration of GroupActivities, session lifecycles, state synchronization, and spatial coordination across Apple platforms. This skill provides guided approaches and best practices to implement and troubleshoot GroupActivities experiences, including visionOS integration.
Core Features & Use Cases
- Define and activate GroupActivity types with minimal, Codable payloads and rich metadata.
- Manage GroupSession lifecycle, messaging via GroupSessionMessenger, and durable state with GroupSessionJournal.
- Render and coordinate spatial experiences using SystemCoordinator and SharePlay UI surfaces (ShareLink, GroupActivitySharingController).
- Handle late joiners, state catch-up, and cross-device participation in visionOS environments.
Quick Start
- Enable the Group Activities entitlement (com.apple.developer.group-session) in your Xcode project and declare a GroupActivity type for your experience.
- Define metadata including a title, type, and a fallback URL; implement a minimal Codable payload for sharing state.
- Observe and join sessions using the appropriate GroupActivity APIs and configure spatial coordination when immersive spaces are involved.