"Missing Push Notification Entitlement" in project with push notifications


#1

Hello everyone!

I have a problem that is bothering a few days ago. I develop an application, which will announce the users for Push. In fact, the App reason to exist is the push notification.

After developing the app and execute the tests in my device-, it felt all right and ready to climb to the store.

Unfortunately, problems started at this time. Even generating all certified development and production, whenever I climb a new version on iTunes Connect, Apple sent me an email with the following message:

Dear developer,

We have discovered one or more issues with your recent delivery for “CloudCasting”. Your delivery was successful, but you may wish to correct the following issues in your next delivery:

Missing Push Notification Entitlement - Your app appears to include API used to register with the Apple Push Notification service, but the app signature’s entitlements do not include the “aps-environment” entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the “aps-environment” entitlement. See “Provisioning and Development” in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.

Regards,

The App Store team

Does anyone have a solution to this problem? Am I doing something wrong?

I am in doubt about the final process, because most of the tutorials with Ionic and Cordova, just go to the step registering devices and send push in development mode. But from the time of publication and testing the “TestFlight” missing information and feel in the dark.

Can someone help me?


#2

I had the exact same problem. For me deleting provisioning profiles and re-creating solved the problem.

Do no forget to refresh profiles in xcode.


#3

Well, my problem was simple. I was just using the general provisioning from my account and not specific to my app. In my overall there was no push settings.

A “rookie error” that Apple Dev Center with a thousand settings. :wink:

Can not forget to generate the production certificate and select the correct provisioning.

Thanks!