iOS and watchOS App Development: Notifications

iOS and watchOS App Development: Notifications

3h 46mIntermediate2019-02-15

Authors

Steven Lipton

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

Skills covered

watchOSiOS DevelopmentiOSMobile DevelopmentAppleDeep Dive (X:Y)

Concepts

Introduction

  • Add notifications to iOS apps
  • What you should know
  • Project and exercise files overview
  • Setting up simulators

User Permissions

  • Add the framework
  • Ask user permission
  • Check user permissions
  • Test user permissions
  • Use provisional permissions

Local Notifications

  • Steps for local notifications
  • Static notification content
  • Dynamic notification content
  • Time interval triggers
  • Calendar notification triggers
  • Notification requests
  • Notification testing
  • In-app notification

Notification Management

  • Pending notifications
  • Unique identifiers
  • Delivered notifications
  • Update notification content
  • Update pending notifications
  • Remove notifications
  • Repeating notifications
  • Remove all notifications
  • Custom group notifications

Interacting with Notifications

  • Get interactive with notifications
  • Configure notification categories
  • Add categories to notifications
  • Add actions to categories
  • Respond to action requests
  • Code the action response
  • Code the next action response
  • Test actions
  • Text response actions
  • Text response requests

Push Notifications

  • APNs and remote notifications
  • Project settings for push notifications
  • Register for notifications
  • Get a certificate key
  • Convert .p12 to .pem
  • Get the token
  • Test the notification

Push Notification Payloads

  • JSON payloads
  • Launch a JSON payload
  • Alerts
  • Actions
  • Add user info in payload
  • User info in app
  • Grouped push notifications

The Service Extensions

  • The notification extensions
  • Add a service extension
  • Code the notification extension

The Content Extension

  • Add the content extension
  • Change the UI
  • Code the view controller
  • Change plist settings
  • Customize actions
  • Customize requests
  • Add buttons
  • Use buttons for actions
  • Code the snooze button

Rich Media in Notifications

  • Types of media
  • Image attachment
  • Audio and video attachments
  • Expired extensions
  • Add an image in content extension
  • Load an image from the web
  • Test the image from the web

Apple Watch Notifications

  • Watch notifications
  • Watch looks
  • Default watch notifications
  • Watch notification interfaces
  • Watch push notifications

Conclusion

  • Next steps
80,000 Toman