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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With