Push Notifications

Jun 18 2019 · Video Course (2 hrs, 29 mins) · Intermediate

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.
5/5 3 Ratings

Version

  • Swift 4, iOS 12, Xcode 10

Common Scenarios

Introduction

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

Getting Started

4:41 Free
Learn how to get your Authentication Token from Apple, and how to set up your Xcode project to receive push notifications.
2
Learn how to register your app and device with APNs, then use PushNotifications Tester to push your first notification
3
Learn about Apple's `aps` dictionary for constructing push notification payloads, including keys for handling localization of your notification text.
4

Tap to App

9:23 Free
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.
5
Learn how to handle a silent notification, downloading data in the background so it's ready when your user opens your app.
6
Learn how to add actions (buttons) to your notification, so your users can respond without opening your app.
7
Learn about provider servers, which store your users' device tokens, to construct push notification requests to APNs.
8

Vapor Server

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

Conclusion

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

Modifying the Payload

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.
11
Learn how to set up a notification service extension to decrypt an encrypted payload before presenting the notification to your user.
12
Learn how to debug a service extension — it's a separate target, so you have to take a few extra steps.
13
Practice debugging your extension by seeing what happens when you comment out the `mutable-content` key.
14

Attaching Media

4:44 Free
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.
15
Learn how to share data between your app and its service extension, to manage the app badge count locally.
16

Conclusion

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

Custom UI

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.
18
Learn how to set up a notification content extension — there's an extra step, to associate it with a payload category.
19

3D-Touch to Map

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

Text Input

4:53
Learn how to use your notification UI to get text input from your users in response to a push notification.
21
Learn how to respond to your user tapping a button in your notification by dynamically modifying the buttons.
22
Practice implementing dynamic actions, through a hands-on challenge: Replace one button with two buttons.
23
Learn how to attach media — downloaded by the service extension — to your content extension's custom UI.
24
Learn how to get custom user input by making your content extension first responder, and presenting a custom user input view.
25

Interactive UI

5:25 Free
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.
26

Conclusion

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

Local Notifications

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.
28

Setup

6:28
Explore the sample project, and finish setting up its `ViewController` and `tableView` to manage local notifications.
29
Learn how to create triggers, content, identifiers and requests for time-based and calendar-based notifications.
30
In this video you'll learn how to create trigger, content, identifier and request for location-based notifications.
31
Refer back to Part 1 of this course, to control what happens when your user taps a local notification.
32

Conclusion

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

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

Contributors

Comments