Submitting Binary for Beta Testing: "Not Eligible for Push Push Notification"

I am currently using Xcode 6.4

. On my site Member Center

, I have both development and production APNS certificates for a specific App ID, and such an App ID appears with Push Notifications enabled for both environments. I also created a couple of provisioning profiles, one for development with the specified App ID and Push Notifications in their allowed services, and the other for ad Hoc for the same App ID and with Push Notifications services enabled.

I can see provisioning profiles in Xcode> Preferences> Accounts> Profile List of Profiles in my account, but Push Push rights are not showing there according to the displayed rights icons.

Also, when I archive an app and want to export for ad Hoc deployment, Xcode doesn't allow me to select a specific provisioning profile to sign the app, even if I set it in Build Target> Code Signing> Provisioning Profile. The application in this dialog also displays 4 rights for the archived application, but none of them are "aps".

Anyway, I exported the app using a setting that Xcode installed and prevents me from changing (XC Ad Hoc: *) and sent it to iTunes Connect. Then I got an email:

Not eligible for Push Notification - Your app appears to include the API used to register with the Apple Push Notification service, but the app signing entitlement does 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 Portal Provisioning Portal and resubmitted after signing your app with a Distribution Provisioning Profile that includes the "aps-environment" access right.

What can happen? In mine Member Center

, I have an App ID for push notifications and I have the appropriate certificates and provisioning profiles. I have updated provisioning profiles twice with no results. What can I put up with? I really need help with this issue.

Thank you in advance

EDIT: If I open the provisioning profile in a text editor, it actually contains the lines:

<key>aps-environment</key>
<string>production</string>

      

Then why is this right listed in Xcode> Preferences> Account Badges to Provision?

EDIT 2: Should I add the Entitlements.plist file to my project? Where can I find documentation on this?

+2


source to share


1 answer


I have spent the last 2 weeks with the same problem. Finally, it worked. Probably the problem is related to a bug in the Xcode 6.4 . Xcode used a different Provisioning Profile to sign the app (the "XC: *" wildcard), which turned out to have no "aps-environment" permissions, even though I selected the provisioning profiles correctly in Build Settings like you did. So to solve this problem, I had to build and distribute through Shenzhen .



Hope this helps too.

0


source







All Articles