objective c - Parse - Push notification not working in iOS 8 -


i registering push parse following code:

#if __iphone_os_version_max_allowed >= 80000 if ([application respondstoselector:@selector(registerusernotificationsettings:)]) {     uiusernotificationtype usernotificationtypes = (uiusernotificationtypealert |                                                     uiusernotificationtypebadge |                                                     uiusernotificationtypesound);     uiusernotificationsettings *settings = [uiusernotificationsettings settingsfortypes:usernotificationtypes                                                                        categories:nil];     [[uiapplication sharedapplication] registerusernotificationsettings:settings];     [[uiapplication sharedapplication] registerforremotenotifications]; } else #endif {     [[uiapplication sharedapplication] registerforremotenotificationtypes:(uiremotenotificationtypebadge |                                                                            uiremotenotificationtypealert |                                                                            uiremotenotificationtypesound)]; } 

in ios 7 it's working properly, when sending push ios 8 it's not working , returns error:

enabledremotenotificationtypes not supported in ios 8.0 , later parse.

any idea doing wrong?

as per error , documentation, enabledremotenotificationtypes deprecated ios 8:

use isregisteredforremotenotifications method instead.


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 -