if([application respondsToSelector:@selector(registerUserNotificationSettings:)]) {
[self registerForiOS8PushSettings]; //for iOS8
} else {
//iOS7 or earlier
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
}
Unable to get the push notification to iOS7 device. didRegisterForRemoteNotificatiosnWithDeviceToken
get called, In fact Message is successfully delivered. Working fine in iOS8.
Copyright Notice:Content Author:「77base」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/26755530/ios-push-notifications-working-on-ios-8-but-not-on-ios-7-in-ios-sdk-8-1