Push Notifications

In this course, you'll learn everything you need to create, send, and receive both remote and local push notifications. You’ll learn how to create push notifications that open a specific view controller, display buttons, modify the payload, download media attachments, display a custom UI with user input & interaction, and are created & delivered locally on the user’s device. By Audrey Tam.

4.9 (9) · 2 Reviews

Save for later
Comments
Share

Who is this for?

This course is for iOS developers with an intermediate level of knowledge of Swift and iOS development. The student needs an Apple Developer Program account.

Covered concepts

  • Why and when to use push notifications
  • How to create, send, and receive push notifications in your app
  • Payload keys
  • Controlling notifications
  • Provider servers
  • Attaching media to notifications
  • Extensions: how to set up and debug
  • Local notifications
  • Notification triggers
  • Dynamic actions
  • Custom and interactive UI

Part 1: Common Scenarios

01
Toggle description

Welcome to the Push Notifications video course! In this video, find out what you'll be learning in the course.

Toggle description

Learn how to get your Authentication Token from Apple, and how to set up your Xcode project to receive push notifications.

Toggle description

Learn how to register your app and device with APNs, then use PushNotifications Tester to push your first notification

Toggle description

Learn about Apple's aps dictionary for constructing push notification payloads, including keys for handling localization of your notification text.

Tap to App 9:23
Toggle description

Learn how to "control" what happens when your user taps a push notification for your app: Open a specific view controller when your user taps your notification.

Toggle description

Learn how to handle a silent notification, downloading data in the background so it's ready when your user opens your app.

Toggle description

Learn how to add actions (buttons) to your notification, so your users can respond without opening your app.

Toggle description

Learn about provider servers, which store your users' device tokens, to construct push notification requests to APNs.

Vapor Server 12:19
Toggle description

Learn how to send device tokens to your provider server, which could be a Vapor server running on your Mac.

Conclusion 1:24
Toggle description

Let's review where you are with push notifications basic concepts, and discuss what's next in this course.

Part 2: Modifying the Payload

Toggle description

Let's review what you'll be learning in this part of the course: how to use a notification service extension to modify the payload.

Toggle description

Learn how to set up a notification service extension to decrypt an encrypted payload before presenting the notification to your user.

Toggle description

Learn how to debug a service extension — it's a separate target, so you have to take a few extra steps.

Toggle description

Practice debugging your extension by seeing what happens when you comment out the mutable-content key.

Toggle description

Photos and video don't fit in a notification's payload. Learn how to overcome the size limit by downloading and attaching internet content to your notification.

Toggle description

Learn how to share data between your app and its service extension, to manage the app badge count locally.

Conclusion 1:04
Toggle description

Let's review how you can use notification service extensions to modify the payload, and discuss what's next.

Part 3: Custom UI

Toggle description

Let's review what you'll be learning in this part of the course: how to use a notification content extension to customize the UI of your push notification.

Toggle description

Learn how to set up a notification content extension — there's an extra step, to associate it with a payload category.

Toggle description

Learn how to display a map view when your user 3D-touches your notification — much more useful than coordinates!

Text Input 4:53
Toggle description

Learn how to use your notification UI to get text input from your users in response to a push notification.

Toggle description

Learn how to respond to your user tapping a button in your notification by dynamically modifying the buttons.

Toggle description

Practice implementing dynamic actions, through a hands-on challenge: Replace one button with two buttons.

Toggle description

Learn how to attach media — downloaded by the service extension — to your content extension's custom UI.

Toggle description

Learn how to get custom user input by making your content extension first responder, and presenting a custom user input view.

Toggle description

Learn how to enable user interaction with standard outlets and actions in your custom UI: Add a button action that opens the Maps app at the same location.

Conclusion 1:03
Toggle description

Let's review how you can use notification content extensions to customize your push notification UI, and discuss what's next.

Part 4: Local Notifications

Toggle description

Let's review what you'll be learning in this part of the course: how to create triggers and content for local notifications, then schedule them.

Setup 6:28
Toggle description

Explore the sample project, and finish setting up its ViewController and tableView to manage local notifications.

Toggle description

Learn how to create triggers, content, identifiers and requests for time-based and calendar-based notifications.

Toggle description

In this video you'll learn how to create trigger, content, identifier and request for location-based notifications.

Toggle description

Refer back to Part 1 of this course, to control what happens when your user taps a local notification.

Conclusion 1:05
Toggle description

Let's review what you've learned in this course about creating, sending and receiving remote and local push notifications.