Views 1248 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

AppDelegate에 위의 메서드를 추가하면 수신 동의 후 device token 수령 성공/실패와 무관하게 push 다이얼로그에서 사용자의 선택이 허용인지 비허용인지를 알 수 있다.


- (void)application:(UIApplication *)application
    didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings
{
    if ((notificationSettings.types & 1) == UIUserNotificationTypeNone) {
        NSLog(@"user selected NO");
    }
    else {
        NSLog(@"user selected YES");
    }
}


?

No Articles

Board Pagination Prev 1 ... 49 50 51 52 53 Next
/ 53