O'Reilly logo

Mastering iOS 10 Programming by Donny Wals

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

Scheduling and handling notifications

Every notification you see on iOS has been scheduled or pushed in one way or the other. But before an app is even allowed to send notifications, we actually have to go through a few steps. The steps you need to follow can be roughly divided as follows:

  1. Registering for notifications.
  2. Creating notification content.
  3. Scheduling your notification.
  4. Handling incoming notifications.

Not every step is identical for push and local notifications, so whenever relevant, the difference will be described. Because of the UserNotifications framework, these differences will be minimal, but they're there. We'll expand the quotes app from the previous chapter with a daily notification as a way to showcase and test notifications.

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