"Missing Push Notification Entitlement" when building in Ionic Pro with push notifications and Firebase

After building with iOS (it goes well) and sending the build with Application Loader, I started receiving this message from iTunes Connect:

Dear developer,

We have discovered one or more issues with your recent delivery for “blablabla”. 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.

I’ve regenerated all certs and received the same error again. We are using push notifications in this app through Firebase and it was working good until we migrated to Ionic Pro and tried to build the app through Ionic Pro’s dashboard instead of using Xcode like before.

Am I missing something? Maybe some Ionic config to let the builder know that it needs to enable the push notifications flag in the app (in plist)…

Thanks.

1 Like

Hey @imaatLuciano did you ever figure this out? I’m running into the same issue. Did you go back to xcode?

Sorry, I was on vacations. The ionic team already fixed it.