알림 클릭 전달 | Push | Appbox iOS 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에서 확인할 수 있습니다.