Enabling push notifications the traditional way via Xcode

The first thing we are going to do is enable push notifications in our Xcode project, which will add APNs entitlements to our project. This can be accomplished by simply going to the project's target, then selecting Capabilities:

Behind the scenes, what this does is associate push notifications entitlements in https://developer.apple.com. For the purpose of our project's example, as it was already associated with another project bundle previously, it wasn't able to add the entitlements successfully. First, let's remove the previous entitlements the project had associated with it:

Get Continuous Delivery for Mobile with fastlane now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.