Summary
In this chapter, we learned about the user notification system in iOS. We looked at handful of ways that notifications are presented to users, and then added notification support to our Snippets app. Along the way, we learned a bit more about the Date and DateComponents classes, and scheduled a daily reminder for the user to check in with the app. We also looked at how to add badge numbers to our notifications, and how to play custom sounds with them as well. Finally, we built a simple alert to relay information to the user when a notification is received while the app is in the foreground.
From here, you should have a solid base with the notification system to venture out and try your hand at implementing remote notifications. You'll need ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access