iOS and watchOS App Development: Notifications
3h 46mIntermediate2019-02-15
Authors

Steven Lipton
VP of Special Projects at Scientific Device Laboratory, Developer
Course details
Learn how to add notifications to iOS and watchOS apps. Notifications can increase engagement and improve user experience, providing a simple and fast way to interact with your app. This course explains how to use features of the UserNotifications framework to send local notifications as well as push notifications from a remote server. iOS developer and LinkedIn Learning instructor Steve Lipton explains how to create static and dynamic content; manage pending and delivered notifications; and add interactive actions to your notifications. Plus, learn how to integrate images, audio, and video into notifications, and build notifications specifically for watchOS.
Learning objectives
Requesting user permission
Static vs. dynamic notification content
Triggers
Sending local notifications
Updating and removing notifications
Creating custom notifications
Adding categories and actions to notifications
Pushing notifications
Building push notification payloads: alerts and actions
Adding service and content extensions
Attaching rich media: images, audio, and video
Creating watchOS notifications
Learning objectives
Requesting user permission
Static vs. dynamic notification content
Triggers
Sending local notifications
Updating and removing notifications
Creating custom notifications
Adding categories and actions to notifications
Pushing notifications
Building push notification payloads: alerts and actions
Adding service and content extensions
Attaching rich media: images, audio, and video
Creating watchOS notifications
Skills covered
watchOSiOS DevelopmentiOSMobile DevelopmentAppleDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Add notifications to iOS apps
- 02 - What you should know
- 03 - Project and exercise files overview
- 04 - Setting up simulators
1. User Permissions
- 05 - Add the framework
- 06 - Ask user permission
- 07 - Check user permissions
- 08 - Test user permissions
- 09 - Use provisional permissions
2. Local Notifications
- 10 - Steps for local notifications
- 11 - Static notification content
- 12 - Dynamic notification content
- 13 - Time interval triggers
- 14 - Calendar notification triggers
- 15 - Notification requests
- 16 - Notification testing
- 17 - In-app notification
3. Notification Management
- 18 - Pending notifications
- 19 - Unique identifiers
- 20 - Delivered notifications
- 21 - Update notification content
- 22 - Update pending notifications
- 23 - Remove notifications
- 24 - Repeating notifications
- 25 - Remove all notifications
- 26 - Custom group notifications
4. Interacting with Notifications
- 27 - Get interactive with notifications
- 28 - Configure notification categories
- 29 - Add categories to notifications
- 30 - Add actions to categories
- 31 - Respond to action requests
- 32 - Code the action response
- 33 - Code the next action response
- 34 - Test actions
- 35 - Text response actions
- 36 - Text response requests
5. Push Notifications
- 37 - APNs and remote notifications
- 38 - Project settings for push notifications
- 39 - Register for notifications
- 40 - Get a certificate key
- 41 - Convert .p12 to .pem
- 42 - Get the token
- 43 - Test the notification
6. Push Notification Payloads
- 44 - JSON payloads
- 45 - Launch a JSON payload
- 46 - Alerts
- 47 - Actions
- 48 - Add user info in payload
- 49 - User info in app
- 50 - Grouped push notifications
7. The Service Extensions
- 51 - The notification extensions
- 52 - Add a service extension
- 53 - Code the notification extension
8. The Content Extension
- 54 - Add the content extension
- 55 - Change the UI
- 56 - Code the view controller
- 57 - Change plist settings
- 58 - Customize actions
- 59 - Customize requests
- 60 - Add buttons
- 61 - Use buttons for actions
- 62 - Code the snooze button
9. Rich Media in Notifications
- 63 - Types of media
- 64 - Image attachment
- 65 - Audio and video attachments
- 66 - Expired extensions
- 67 - Add an image in content extension
- 68 - Load an image from the web
- 69 - Test the image from the web
10. Apple Watch Notifications
- 70 - Watch notifications
- 71 - Watch looks
- 72 - Default watch notifications
- 73 - Watch notification interfaces
- 74 - Watch push notifications
Conclusion
- 75 - Next steps