ストリーミングはほとんどのブラウザと
Developerアプリで視聴できます。
-
ライブアクティビティのブロードキャスト更新
ブロードキャストプッシュ通知を使用すると、1回のリクエストで何千ものライブアクティビティにアップデートを送信できます。ブロードキャストプッシュ通知がアプリ、サーバ、Apple Push Notification Service間でどのように動作するかを確認し、この機能のベストプラクティスと実装方法を説明します。
関連する章
- 0:00 - Introduction
- 1:17 - Overview
- 4:57 - Get started
- 7:30 - Subscribe to updates
- 8:39 - Send broadcast push notifications
リソース
- 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
関連ビデオ
WWDC23
-
ダウンロードArray
-
-
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) ) }
-
-
特定のトピックをお探しの場合は、上にトピックを入力すると、関連するトピックにすばやく移動できます。
クエリの送信中にエラーが発生しました。インターネット接続を確認して、もう一度お試しください。