Develop
2018.10.19 16:03
[ios] APNS, Remote Push 사용자가 수신을 동의했는지 확인하기
조회 수 1265 댓글 0
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"); } }
-
[php] substr() 한글 자를 때 깨짐 방지
-
[ios] UIWebView 쿠키 유지
-
[ios] UIWebView에서 NSURLRequest에 Cookie 실어 보내기
-
[linux] CentOS 6.x Cati 설치 (yum)
-
[js] 주소표시줄 URL 읽어오기 (변경까지)
-
[ios] 네트워크 인디케이터(NetworkActivityIndicator) 작동
-
[ios] iOS 6.0 이상 회전 하기 (이전 버전과 비교 변경 부분)
-
[ios] NSString 간단한 정규식 사용법
-
[c] 64bit 머신에서 inet_ntoa() 사용시 Segment fault 대처 방법법
-
[php] XE 관리자 IP대역 설정 오류 해결법
-
[sql] 쿼리로 문자열 검색해서 일괄 치환하기
-
[html] SVG(Scalable Vector Graphics) 간단 정리