알림 클릭 전달 | Push | Appbox iOS SDK 가이드

알림 클릭 전달

사용자가 알림을 눌렀을 때 받은 response를 SDK에 전달합니다.

알림 클릭 전달

AppBox.movePush(_ response: UNNotificationResponse)

Swift
1 func userNotificationCenter(
2 _ center: UNUserNotificationCenter,
3 didReceive response: UNNotificationResponse,
4 withCompletionHandler completionHandler: @escaping () -> Void
5 ) {
6 AppBox.movePush(response)
7 completionHandler()
8 }
1 - (void)userNotificationCenter:(UNUserNotificationCenter *)center
2 didReceiveNotificationResponse:(UNNotificationResponse *)response
3 withCompletionHandler:(void (^)(void))completionHandler {
4 [AppBox movePushWithResponse:response];
5 completionHandler();
6 }

Request 항목 정의

Request 항목필수여부설명기본값
response필수알림 클릭 callback이 전달한 UNNotificationResponse-

Response 항목 정의

Response 결과값
없음반환값과 SDK callback이 없습니다


시스템 completion handler를 반드시 호출합니다. 동일한 클릭 이벤트를 AppDelegate와 SceneDelegate 양쪽에서 중복 전달하지 않습니다.

AppDelegate 연결 예제는 AppBoxSampleiOS에서 확인할 수 있습니다.

www.naver.com
QR 코드를 촬영하면 입력하신 주소의
앱 예시 화면을 테스트할 수 있습니다.
* 스캔 후 바로 앱 다운로드 이동합니다.