2016-09-16 5 views
0

푸시 알림에 필요한 모든 인증서가 생성되었으며 백 엔드 푸시 봇이 사용되었습니다. 푸시 봇으로부터 푸시 알림을 받지만 다음은 메서드가 호출되지 않습니다.iOS : 푸시 봇을 통한 알림 푸시

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo 

나는 밀어 넣기 봇 프레임 워크를 포함하고 모든 절차를 따랐습니다. 내 코드가 잘못되었거나 백엔드에서 문제가 발생했습니다. 솔루션을 찾을 수 없습니다.

+0

iOS 버전을 테스트하나요? –

+0

최신 ios 버전 9.3 –

+0

배경 가져 오기를 사용하도록 설정 했습니까? 그리고 당신은 컨텐츠를 사용하여 추진하고 있습니까? –

답변

0
There may be many reason not one. I will let you know the Steps. Make sure it is done. 

1)Have you enabled push notification in Capabilities.if not please enable it. 

2)Check your App identifier whether your bundleId matches and you enabled a push notification for that bundle ID. 

3)The Sample code for iOS8 or above 
UIUserNotificationType allNotificationTypes = 
     (UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge); 
     UIUserNotificationSettings *settings = 
     [UIUserNotificationSettings settingsForTypes:allNotificationTypes categories:nil]; 
     [[UIApplication sharedApplication] registerUserNotificationSettings:settings]; 
     [[UIApplication sharedApplication] registerForRemoteNotifications];