Every notification you see on iOS has been scheduled or pushed to the user in one way or an 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:
- Registering for notifications.
- Creating notification contents.
- Scheduling your notification.
- 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.