push notification - Objective C iOS 8 deprecated code -
i have depracated code when upgrading target ios 10. please can 1 me convert following i'm unable find solution. - (void)userrequestspushnotificationson { uiapplication *application = [uiapplication sharedapplication]; uiusernotificationtype notificationtypes = uiusernotificationtypealert | uiusernotificationtypebadge | uiusernotificationtypesound; uiusernotificationsettings *settings = [uiusernotificationsettings settingsfortypes:notificationtypes categories:nil]; [application registerusernotificationsettings:settings]; [application registerforremotenotifications]; } uiusernotificationtype & uiusernotificationsettings deprecated. many in advance! what need implement unusernotificationcenter . here's guide setup: push notifications in ios 10 wiki