Contents

?

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");
    }
}



?

List of Articles
No. Category Subject Author Date Views
1029 Develop [swift] popToRoot 모달뷰, 네비게이션컨트롤러 한꺼번에 닫기 file hooni 2021.01.29 1539
1028 Develop [swift] NotificationCenter 간단 예제 file hooni 2021.01.27 8314
1027 System/OS [svn] 하나의 SVN에서 멀티 저장소 (One svnserve, multiple repositories) hooni 2015.01.02 1776
1026 Etc [svn] 콘솔에서 svn 사용시 레티나용 이미지 add 안될 때.. hooni 2013.09.25 37604
1025 System/OS [svn] SVN trunk 변경사항 되돌리기 (SVN Rollback) hooni 2014.11.27 1693
1024 System/OS [svn] Can't convert string from native encoding to 'UTF-8' 메시지가 나오는 경우 hooni 2014.12.18 1140
1023 Database [sql] 한눈에 보이는 Join file hooni 2014.02.19 8542
1022 Database [sql] 쿼리로 문자열 검색해서 일괄 치환하기 hooni 2014.02.13 10046
1021 System/OS [sql] 중복데이터 삭제 쿼리 hooni 2013.04.23 14802
1020 System/OS [sql] 조회구문(select)에서 중복 데이터를 한 번만 출력 (distinct) 1 hooni 2013.04.23 34032
1019 System/OS [sql] 내 방명록 답글 찾는 쿼리문.. (JOIN 구문) hooni 2003.04.23 12913
1018 Database [sql] 간단한 통계 서브쿼리 예제.. hooni 2013.04.23 15149
Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 ... 98 Next
/ 98