Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple Push Notification Error (aps-environment)

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.

like image 703
azamsharp Avatar asked Sep 28 '11 16:09

azamsharp


People also ask

What is APS environment in iOS?

APS Environment (macOS) Entitlement. The environment for push notifications in macOS apps. Key: com.apple.developer.aps-environment. com.apple.developer.usernotifications.filtering. Enable receiving notifications without displaying the notification to the user.

How do I enable push notifications in provisioning profiles?

In your Apple Developer Account under Certificates, IDs & Profiles > Identifiers, select Identifiers. Find and select your Identifier to enable Push Notifications, but do not click Configure. If you do not see your Identifier, follow Step 2. Provisioning.

Are Apple push notifications guaranteed?

The system makes every attempt to deliver local and remote notifications in a timely manner, but delivery isn't guaranteed. The PushKit framework offers a more timely delivery mechanism for specific types of notifications, such as those VoIP and watchOS complications use.


1 Answers

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.

like image 82
WrightsCS Avatar answered Oct 16 '22 21:10

WrightsCS