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 to look into the APN service, and learn how to handle the server side of things, but once the notifications make it to the iOS device, you should have a decent handle of how to implement them into your app!
With this chapter, we've finished...