Getting an error from push notification

arunkumar.p picture arunkumar.p · Mar 28, 2011 · Viewed 57.9k times · Source

In my app, I need push notifications. I am implementing all the instructions from the push notifications docs. But I got an error from Push Notification:

Fail To Register For Remote Notifications With Error:
  Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment'
  entitlement string found for application" UserInfo=0x2340a0
  {NSLocalizedDescription=no valid 'aps-environment' entitlement string
  found for application}

What I am doing wrong?

Answer

nithinreddy picture nithinreddy · Jul 10, 2012

Generate a new provisioning profile, after you enable Push, and it will work!