Push notifications not working, and a "Missing Push Notification Entitlement" email from Apple

I’ve built my first Expo app for iOS using push notifications, and want to test it on my device using TestFlight.

When running expo build:ios, I followed all the suggested steps to allow Expo to generate all of the keys and profiles and the like for me.

Shortly after uploading the .ipa file to Apple, I get an email with the following:

Dear Developer,

We identified one or more issues with a recent delivery for your app, "Reward Flight Finder". 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

When I run the app, I don’t seem to be able to successfully register for push notifications.

Am I missing something? I notice in the Apple Developer portal that a push key has been created, but the App ID does not have push notifications enabled.

Hey @timrogers!

Looks like this StackOverflow post here deals with the issue. https://stackoverflow.com/questions/39554177/xcode-8-the-aps-environment-entitlement-is-missing-from-the-apps-signature-on

Let me know if you have any further questions!

Hello @charliecruzan, I also got this email and this stackoverflow link deals with xcode not expo.

1 Like

Hi

Check if your app id in apple developer portal have push notification enabled. If it’s not enabled there, you need to enable it and generate new provisioning profile(revoke old one and add --clear-provisioning-profile to next build:ios)

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.