Processing Queued Notifications

Panther·2021년 8월 15일
0

https://developer.apple.com/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_foreground/processing_queued_notifications

"Respond to notifications when coming out of the suspended state."

일시정지 상태에서 벗어날 때 노티피케이션에 응답합니다.

Overview

설정 및 기기 상태가 변경되면 시스템은 앱이 그에 따라 응답할 수 있도록 노티피케이션을 생성합니다. 이러한 노티피케이션은 실행 중인 앱으로 즉시 전달되지만, 전달은 일시정지된 앱에서 지연됩니다. 일시정지된 앱의 경우 보류된 노티피케이션은 앱이 실행 상태로 다시 시작될 때 전달됩니다(다시 시작되는 상태가 포어그라운드 혹은 백그라운드 상태에 관계 없이).

Table 1은 앱이 다시 시작된 후 앱이 받을 수 있는 노티피케이션의 리스트입니다. 노티피케이션을 받으려면 이러한 노티피케이션에 대한 옵저버를 명시적으로 추가해줘야 합니다. 앱이 net 변경에서 오직 하나의 노티피케이션만 받을 수 있도록 시스템은 여러 가지 관련 노티피케이션을 통합합니다.

Table 1 Notifications that are queued for suspended apps

EventNotifications
사용자가 앱의 preference를 변경했습니다.didChangeNotification
현재 언어 혹은 로케일 설정이 변경되었습니다.currentLocaleDidChangeNotification
디스플레이의 스크린 모드가 변경되었습니다.modeDidChangeNotification
외부 디스플레이가 연결 혹은 연결 해제됩니다.didConnectNotification
didDisconnectNotification
액세서리가 연결 혹은 연결 해제됩니다.EAAccessoryDidConnect
EAAccessoryDidDisconnect
사용자 아이클라우드 계정의 상태가 변경되었습니다.NSUbiquityIdentityDidChange
기기 orientation이 변경되었습니다.orientationDidChangeNotification
(UIKit은 적합한 시점에 뷰 컨트롤러의 인터페이스 orientation을 자동으로 업데이트합니다.)
시간의 중요한 변경이 있었습니다.significantTimeChangeNotification
배터리 수준 혹은 배터리 상태가 변경되었습니다.batteryLevelDidChangeNotification
batteryStateDidChangeNotification
사용자에 대한 기기의 프록시미티가 변경되었습니다.proximityStateDidChangeNotification

일시정지된 앱이 실행을 다시 시작할 때, 시스템은 터치 이벤트 혹은 사용자 입력을 전달하기 전, 앱의 메인 쓰레드에 큐에 있는 모든 노티피케이션을 전달합니다. 가능한 빠르게 노티피케이션을 처리하시기 바랍니다.

0개의 댓글