ios - didRegisterForRemoteNotificationsWithDeviceToken is not called up in ios8 -
i know question asked , have solution it,i tried solution available ,but nothing working me. code working on side when submit app store reject (till got 3 rejections app store).
i try the code following link:-
why didregisterforremotenotificationswithdevicetoken not called
https://developer.apple.com/library/ios/technotes/tn2265/_index.html
i check provisional profile , certificates fine.
anyone please help
push notification registration process has been changed in ios 8, make sure have added this
if ([[[uidevice currentdevice] systemversion] floatvalue] >= 8.0) { [[uiapplication sharedapplication] registerusernotificationsettings:[uiusernotificationsettings settingsfortypes:(uiusernotificationtypesound | uiusernotificationtypealert | uiusernotificationtypebadge) categories:nil]]; [[uiapplication sharedapplication] registerforremotenotifications]; }
Comments
Post a Comment