objective c - Remote notifications for iOS 8 -


in notifications app not registred son , badge.

this code:

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:     (nsdictionary *)launchoptions {     //-- set notification     if ([[[uidevice currentdevice] systemversion] floatvalue] >= 8.000000) {         uiusernotificationsettings * settings = [uiusernotificationsettings settingsfortypes:uiusernotificationtypealert | uiusernotificationtypebadge | uiusernotificationtypesound categories:nil];         [[uiapplication sharedapplication] registerusernotificationsettings:settings];         [[uiapplication sharedapplication] registerforremotenotifications];     } else {         //[[uiapplication sharedapplication] registerforremotenotificationtypes:(uiusernotificationtypebadge | uiusernotificationtypesound | uiusernotificationtypealert)];         [[uiapplication sharedapplication] registerforremotenotificationtypes:(uiremotenotificationtypebadge | uiremotenotificationtypesound | uiremotenotificationtypealert)];         [[uiapplication sharedapplication] registerforremotenotifications];     } 

someone has explanation? thank you

ios 8 need change in push notification delegate methods , explained in this link

also don't call registerforremotenotifications ios 8 because deprecated.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -