- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { NSLog(@"registerForRemote ERROR: %@", [error localizedDescription]); }
위 함수를 추가해주면 호출되지 않는 원인을 알 수 있다.
보통 등록되지 않는 경우 'aps-environment' 인타이틀먼트 문자열 없음 의 경우가 많은데 이는 provisioning 파일 생성 후에 APNS 또는 디바이스 등의 설정을 변경 했기 떄문이다. 이경우 디바이스의 provisioning 파일을 제거 후 새로 생성하여 다운로드 받으면 된다.
'Development > iOS' 카테고리의 다른 글
iOS 페이스북 링크 사파리에서 열기 (0) | 2014.07.25 |
---|---|
iOS Google Analytics sqlite3 링크 에러 (0) | 2014.07.17 |
cocos2d-x iOS SimpleAudioEngine 효과음 버그 수정 (0) | 2014.07.17 |
iOS Facebook SDK SSO 연동 문제 is not registered as a url scheme (0) | 2014.07.11 |
iOS GooglePlayGameService 연동시 로드 되지 않을때 (0) | 2014.07.07 |