Learn what defines a notification and see a demonstration of how notifications show on an Apple Watch connected to the iPhone.
- [Instructor] Notifications are core watchOS functionality. An Apple Watch's purpose is to interact with the user in a few seconds. Notifications that appear on the watch save the user the time to find, pick up, and look at their phone. On the watch, you just raise your wrist. There are two types of notifications, local and push. Local notifications are notifications from apps running in the foreground or background of your phone or watch, indicating that something needs your attention. An alarm or appointment on a calendar app or the notification you made of 100 move goals, are all examples of local notifications.
Push notifications receive information from a remote server. Social media applications, or the message app, for example, will notify you if there's a new message or reply to your post. Since remote notifications work with an external server, they are harder to set up than the local notifications. I'll show you in this course how to use local notifications. For more on remote notifications, see the course iOS App Development: Notifications. This course is about notification on the Apple Watch. However, we'll be working a lot with iPhone notifications.
The phone is the most common source for notifications displaying on the watch. Notifications typically happen on the phone with a banner or alert. If a user has an Apple Watch, they can receive that same notification on their watch. If the phone is asleep, the watch shows the notification. In iOS 10 and WatchOS3, Apple redesigned the notification system. Notifications are their own framework, which can use triggers such as time intervals, dates, or locations. Notifications can launch not only on the phone, but the watch.
Lets now look at both of these as we explore watch notifications.
- Running iPhone local notifications on the Apple Watch simulator
- Running push notifications on the Apple Watch simulator
- Adding icons
- Default long look, static long look, and dynamic long look
- Setting up local notifications
- Coding and running notifications
- Setting interface controllers