In ios8, hundreds of pushing messages cannot be received.
In ios8, the type of the Baidu push and receive will change:
// Message push Registration
If ([[[UIDevicecurrentDevice] systemVersion] floatValue]> = 8.0)
{
[[UIApplicationsharedApplication] registerUserNotificationSettings: [UIUserNotificationSettings
SettingsForTypes :( UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge)
Categories: nil];
[[UIApplicationsharedApplication] registerForRemoteNotifications];
}
Else {
[[UIApplicationsharedApplication] registerForRemoteNotificationTypes :( UIRemoteNotificationTypeBadge | uiremotenotiftypetypesound | uiremotenotiftypetypealert)];
}
// Cancel push
[[UIApplication sharedApplication] registerForRemoteNotificationTypes :( UIRemoteNotificationTypeBadge | uiremotenotiftypetypesound | UIRemoteNotificationTypeAlert)];