I am getting the error in setting up the push notification on an iPhone 5 with iOS 8 :
2015-04-29 00:23:14.688 pushNotificationTest[192:6284] Did Fail to Register for Remote Notifications 2015-04-29 00:23:14.698 pushNotificationTest[192:6284] Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x15e89820 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}, no valid 'aps-environment' entitlement string found for application Message from debugger: failed to send the k packet
I use this link to implement it
http://code.tutsplus.com/tutorials/setting-up-push-notifications-on-ios--cms-21925
I already tried these work around provided by different people on this link :
Getting an error from push notification
code that i am using to register
UIUserNotificationSettings *settings=[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
[[UIApplication sharedApplication] registerForRemoteNotifications];