I have registered the app on iTunes connect. When I run the app on the device I get the following APNS error.
Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x19e890 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}
I have used the same AppID and bundle identifier in the xCode project as well as the iTunes connect.
Also, I forgot to mention that the App is registered under a Enterprise developer profile and I am running it under my personal developer profile.
You have either not enabled Push Notifications in the Provisioning Portal, or you are not signing your app with the correct certificate that was created when you did enable Push Notifications.