My app APNS is working well in less then ios8, but in ios8 i am not getting device token, even didRegisterForRemoteNotificationsWithDeviceToken delegate method is not called. Please advise.
Asked
Active
Viewed 109 times
1
-
Show your APNS registering code. – Sujith Thankachan Nov 06 '14 at 10:59
1 Answers
1
I had same problem along with my application and refer below link and resolve this
clickable link
#ifdef __IPHONE_8_0
- (void)application:(UIApplication *)application didRegisterUserNotificationSettings: (UIUserNotificationSettings *)notificationSettings
{
//register to receive notifications
[application registerForRemoteNotifications];
}
- (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo completionHandler:(void(^)())completionHandler
{
//handle the actions
if ([identifier isEqualToString:@"declineAction"]){
}
else if ([identifier isEqualToString:@"answerAction"]){
}
}
#endif