O'Reilly logo

iOS Programming Cookbook by Hossam Ghareeb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up a local server to send Push Notifications

In the previous section, we saw how to set up push notifications from the Apple developer account and in the Xcode project. Then, we wrote the code in AppDelegate to register for push notifications. Everything is good, but it will be nothing if we don't know how to send push notifications to the device. In this section, we will set up a local server that will send push notifications to the device using the APNS certificate and the device token.

Getting ready

To send push notification easily, we will introduce a good and easy tool that you can set up in your local machine. Check the following tool in GitHub, which is called Houston: https://github.com/nomad/houston

Houston is a ruby gem that can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required