Setting up notifications - the prerequisites
If you are going to send notifications to iOS devices, then you have to go through the following steps. Regardless of the method you employ to send your messages, whether it be Urban Airship, ACS, or something home-brewed, you will need to register your app with Apple first.
There are various methods for sending Android notifications. Some methods such as GCM are centralized and require some setup, whereas push notifications to Android using ACS need hardly any configuration. We will cover the Android setup in the push notification example later in the chapter.
Setting up iOS notifications
Here is the step-by-step guide to registering for push notifications with Apple. Note that you will need to go through this example twice. Once for development so you can create a certificate for use in testing, and a second time for production for use when your code is live. Production certificates can only be used for apps that are live, and equally, development...