Streaming is available in most browsers,
and in the Developer app.
-
Broadcast updates to your Live Activities
With broadcast push notifications, your app can send updates to thousands of Live Activities with a single request. We'll discover how broadcast push notifications work between an app, a server, and the Apple Push Notification service, then we'll walk through best practices for this capability and how to implement it.
Chapters
- 0:00 - Introduction
- 1:17 - Overview
- 4:57 - Get started
- 7:30 - Subscribe to updates
- 8:39 - Send broadcast push notifications
Resources
- Forum: App & System Services
- Sending broadcast push notification requests to APNs
- Sending channel management requests to APNs
- Setting up broadcast push notifications
- Starting and updating Live Activities with ActivityKit push notifications
Related Videos
WWDC23
-
DownloadArray
-
-
7:50 - Subscribe a Live Activity to broadcast push notification updates
// Request a Live Activity and subscribe to broadcast push notifications import ActivityKit func startLiveActivity(channelId: String) { let gameAttributes = GameAttributes() let initialState = GameAttributes.ContentState( home: 0, away: 0, update: "First Half" ) try Activity.request( attributes: gameAttributes, content: .init(state: initialState, staleDate: nil), pushType: .channel(channelId) ) }
-
-
Looking for something specific? Enter a topic above and jump straight to the good stuff.
An error occurred when submitting your query. Please check your Internet connection and try again.