iOS16
-
ios 16 Live activities + Dynamic Island기덕의 생활/애플 2022. 9. 25. 21:12
[LIVE ACTIVITIES] 라이브 액티비티는 말하자면 위젯 형태의 알림입니다. 16.1에 추가된 ActivityKit api는 widgetkit으로 만든 위젯의 업데이트만 담당하므로 라이브 액티비티 보이는 부분 구현은 일반 위젯과 유사합니다. 위젯처럼 백그라운드에서 업데이트하는 방식이 아닌 푸시 알림 방식으로만 업데이트 되서 업데이트를 트리거 해줄 서버가 따로 필요합니다. 샘플코드 출처입니다: https://github.com/batikansosun/iOSLiveActivitiesLockScreen 1:24 되어있는 부분은 타이머처럼 실시간으로 업데이트 되는거 보니 일반 위젯과는 다르게 실시간 업데이트가 초단위로 가능한것 같습니다. 하지만 정보 업데이트 자체는 푸시 알림 방식이기 때문에 15초 남았..