Notify makes it easy to send cross-platform notifications to your users. From in-app push notifications on Android and iOS to SMS fallbacks, Notify takes care of the heavy lifting.

Let’s build an iOS app that can receive and react to push notifications sent by the Apple Push Notification Service (APNS) and Twilio Notify.

Tools and Agenda

There are a few things you will need in order to run all of the code in this tutorial:

To send push notifications we will need to:

Create a Twilio Credential and a provisioning profile for your Apple developer account

Configure a Node.js server to authenticate our iOS app

Create a Binding for Twilio to send notifications to your device

Write code to register your device with APNS

Write code to receive notifications from APNS

Bask in the glory of having a working app that you can modify to fit your needs

Configuring the server

We will build off the iOS Quickstart for Twilio Notify which uses Node.js on the server side to authenticate the iOS app.

Begin by cloning this repository for the Node server in your terminal: