ios - Fail to register for remote push notification -
i getting error in setting push notification on iphone 5 ios 8 :
2015-04-29 00:23:14.688 pushnotificationtest[192:6284] did fail register remote notifications 2015-04-29 00:23:14.698 pushnotificationtest[192:6284] error domain=nscocoaerrordomain code=3000 "no valid 'aps-environment' entitlement string found application" userinfo=0x15e89820 {nslocalizeddescription=no valid 'aps-environment' entitlement string found application}, no valid 'aps-environment' entitlement string found application message debugger: failed send k packet
i use link implement
http://code.tutsplus.com/tutorials/setting-up-push-notifications-on-ios--cms-21925
i tried these work around provided different people on link :
getting error push notification
code using register
uiusernotificationsettings *settings=[uiusernotificationsettings settingsfortypes:uiusernotificationtypealert | uiusernotificationtypebadge | uiusernotificationtypesound categories:nil]; [[uiapplication sharedapplication] registerusernotificationsettings:settings]; [[uiapplication sharedapplication] registerforremotenotifications];
make sure in build settings, code signing identity debug set proper provisioning profile
in enabled push notification.
you don't have delete or recreate anything. have make xcode update active certificates (including new push notification certificate).
simply go xcode > preferences > accounts > pick account > pick team > view details
there click refresh button in lower left corner. (also check code signing in build settings)
for creating certificate , provisioning profile follow awesome tutorial
Comments
Post a Comment