Enabling push notifications
In order to set up push notifications on your app, there are a few things you will need. The provisioning aspect is the first criteria, whereby the app will need to be provisioned and registered with the APNs to receive push notifications. This is done via Xcode, which will be discussed shortly.
The second criteria is a server or provider (as we mentioned in the previous section) tasked with sending push notification payloads to the APNs conduit, which will then orchestrate the messages to the devices. This chapter will not focus much on the setup of a server, as it is beyond the scope of the book; however, there are some recommended free platforms that do provide push notification capabilities, including Firebase (https://firebase.google.com/) and Urban Airship (https://www.urbanairship.com/).
Another recommended tool to use for testing is the open source NWPusher (https://github.com/noodlewerk/NWPusher), which will allow you to send JSON payload packets in a test...