There is no valid aps-environment permission string for the application when trying to enable push notifications

I read all other questions asking about this error, and it seems that I followed their solutions, but I still have this problem. I deleted all existing provisioning profiles and application identifiers. I created a new app id with click enabled. I created a development support profile with click enabled. On the Apple dev site, this provisioning profile has a green “active” indicator next to it. In xcode5, in the settings> accounts section, a provisioning profile is displayed. In the> organizer window, my profile profile is displayed under my device with the status "valid profile". But the error is still happening. What am I missing here?

Edit: I want to clarify that I created the provisioning profile AFTER the APNS certificate was created, since this seems to be the most common solution for this.

+3
source share
2 answers

Of course, I will find out what is wrong immediately after entering the question - the package identifier in xcode did not match my application, and I forgot to renew the certificate, which I uploaded to the city airship after restarting the configuration process.

+8
source

It looks like you fixed the problem, but I got this problem when I upgraded to a new machine. Turns out I forgot to bring some certificates from my old machine. I fixed it by importing certificates from old to new.

Steps:

  • Export certificates for an old machine as .p12.
  • Copy them to a new machine.
  • (), Keychain Access .
  • Xcode Xcode > Preferences > Accounts, .
+2

All Articles