Chapter 8. Push notification and in-app purchase—Rock, Paper, Scissors


This chapter covers
  • Push notifications with UrbanAirship
  • Setting up in-app purchases
  • Building a simple game


Push notification is a way to have a server send a message to a device. The message can include text, a badge number for the specified app’s icon, and an audio file included in the app to play.

If the app isn’t currently running, the user will see the notification and can open the app. If the app is running, a certain method is called with the notification details, which the app is designed to handle.

In-app purchases are facilitated by the app, but supported by the server, which handles the payment processing. The items available for sale within the app are ...

Get iOS in Practice 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.