Notifications were first launched in 2009 and are a staple of the iOS system. Whether from your favorite app or a text message, you have encountered a notification at some point while using a smartphone. Pre-iOS 10, if you had to work with notifications in iOS, you had two types of push notifications: remote (from a server) and local.
iOS 10 made changes to notifications that simplified them, but also made them more robust. In iOS 10, there is now one notification that covers both remote and local notifications, which is excellent for those who have worked with them in the past. Concerning breadth of functionality, notifications now allow you to embed rich media (such as images, video, and audio), and also have custom UI content.
In this chapter, we are going to learn how to create basic notifications, as well as notifications with embedded images. After we look...