O'Reilly logo

iOS in Practice by Bear Cahill

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

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 ...

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