스트리밍은 대부분의 브라우저와
Developer 앱에서 사용할 수 있습니다.
-
실시간 현황에 업데이트 브로드캐스트하기
브로드캐스트 푸시 알림을 활용하면 단일 요청으로 수천 개의 실시간 현황에 업데이트를 전송할 수 있습니다. 브로드캐스트 푸시 알림이 앱, 서버, 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) ) }
-
-
찾고 계신 콘텐츠가 있나요? 위에 주제를 입력하고 원하는 내용을 바로 검색해 보세요.
쿼리를 제출하는 중에 오류가 발생했습니다. 인터넷 연결을 확인하고 다시 시도해 주세요.