How to Remove the iOS Push Notification Error

Chiedu Mokwunye
3 min readMar 31, 2021

I recently updated capabilities in my Apple console to enable Push Notifications. This is the process I went through after logging in and navigating from my Dashboard — Certificates, Ids, and Profile — Identifiers.

I checked the Push Notification, after enabling it, I clicked on the Edit button to generate a certificate. Clicked on Create Certificate under Production SSL Certificate then clicked on Done and saved it.

Once this was done, I went back to my Certificates, Identifiers and Profiles Page and clicked on Profiles (the gray button).

The Enabled Capabilities reflected the change under Profiles. Push Notification has been included🙂

At this point, I rebuilt my application and pushed it to the apple store but I kept on receiving this email from Apple😡: 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 does not automatically copy the aps-environment entitlement from provisioning profiles at build time.

All the write-ups i found online at this point were futile but at the end of the day with the help of a friend😇— Joseph Udonsak, I finally figured out what was still missing🙌

In your Provisioning Profile re-download (Click on the Download button) — in the picture above, the Provisioning Profile with the updated capabilities enabled. Now go to your Xcode.

Click on Signing and Capabilities. Untick the Automatically manage signing to update your Provisioning profile. Click on the dropdown button and import the new Provisioning Profile downloaded.

After that click on +Capability to include Push Notifications.

You should see this showing below with no error message if it is successful. You can go back and tick the Automatically manage signing, your choice.

Clean your build folder, rebuild the application and distribute. You should no longer receive that error message from Apple

Conclusion

This is the first of many articles and I hope it is helpful.

Thanks for reading.

--

--