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

get device token in ios 8

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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -