iOS8 Push Issues
Registerforremotenotificationtypes:is not supported in IOS 8.0 and later.
if ([[[[Uidevice Currentdevice] systemversion] floatvalue] >= 8.0) { [[uiapplication sharedapplication] Registerusernotificationsettings:[uiusernotificationsettings settingsfortypes: (UIUserNotificationTypeSound | Uiusernotificationtypealert | Uiusernotificationtypebadge) Categories:nil]; [[UIApplication sharedapplication] registerforremotenotifications];} else{//here is still the original code [[UIApplication sharedapplication] Registerforremotenotificationtypes: ( Uiusernotificationtypebadge | Uiusernotificationtypesound | Uiusernotificationtypealert)];}
Determine if push is open
{Uiremotenotificationtype types;if ([[[[Uidevice Currentdevice] systemversion] floatvalue] >= 8.0) {types = [[UIApplication sharedapplication] currentusernotificationsettings].types; } else {types = [[UIApplication sharedapplication] enabledremotenotificationtypes]; } Return (types & Uiremotenotificationtypealert);}
iOS8 Push Issues