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

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -