UIApplication에 APNs 원격 알림 등록을 요청합니다.
원격 알림 등록 | Push | Appbox iOS SDK 가이드
원격 알림 등록
원격 알림 등록
AppBox.registerForRemoteNotifications() -> Bool
Swift
1
let requested = AppBox.registerForRemoteNotifications()
2
if !requested {
3
print("APNs 등록 요청을 전달하지 못했습니다.")
4
}
1
BOOL requested = [AppBox registerForRemoteNotifications];
2
if (!requested) {
3
NSLog(@"APNs 등록 요청을 전달하지 못했습니다.");
4
}
Request 항목 정의
Response 항목 정의
| Response 결과값 | |
|---|---|
Bool | APNs 등록 요청을 SDK가 전달했는지 여부. 즉시 반환됩니다 |
반환값은 APNs 등록 완료나 token 발급 성공을 의미하지 않습니다. 권한 허용 뒤 호출합니다. 실제 token은 AppDelegate의 등록 성공 callback에서 handleAPNSToken(_:)으로 전달합니다.