question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Got an email from Apple for Missing Push Notification Entitlement

See original GitHub issue

I am not even using Push notification. With Cordova I was not getting this email. Looks like capacitor by defualt injects PushNotification framework or something.

Dear Developer,We identified one or more issues with a recent delivery for your app, "******". Your delivery was successful, but you may wish to correct the following issues in your next delivery:Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do 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 Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement. Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.Best regards,The App Store Team

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jcesarmobilecommented, Oct 4, 2018

Can you try removing this two methods from AppDelegate.swift and resubmit again?

func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
    NotificationCenter.default.post(name: Notification.Name(CAPNotifications.DidRegisterForRemoteNotificationsWithDeviceToken.name()), object: deviceToken)
}

func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
    NotificationCenter.default.post(name: Notification.Name(CAPNotifications.DidFailToRegisterForRemoteNotificationsWithError.name()), object: error)
}
0reactions
adrynovcommented, Sep 3, 2019

I agree with Daniel.

I got exactly the same message with bare bones Capacitor project and only searching GitHub issues, found this Closed issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing push notification entitlem… | Apple Developer Forums
Hi,. I am uploading an app to itunes connect but I always get the "Missing push notification entitlements" email. I triple checked everything...
Read more >
Missing Push Notification Entitlem… | Apple Developer Forums
To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a...
Read more >
Missing Push Notification Entitlement - Apple Developer
"Missing Push Notification Entitlement - Your app includes an API for Apple's Push Notification service, but the aps-environment entitlement is missing from ...
Read more >
Warning: Missing Push Notification… | Apple Developer Forums
Hi all,. Today I received warning from Apple: Dear developer,. We have discovered one or more issues with your recent delivery for "Probid...
Read more >
Missing Push Notification Entitlem… | Apple Developer Forums
I have the exact same problem. I received the email, I researched how to fix the error, re-generated mobile provisions and distribution certificates...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found