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.
- 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
Welcome to the Push Notifications video course! In this video, find out what you'll be learning in the course.
Learn how to get your Authentication Token from Apple, and how to set up your Xcode project to receive push notifications.
Your First Push
Learn how to register your app and device with APNs, then use PushNotifications Tester to push your first notification
Learn about Apple's
aps dictionary for constructing push notification payloads, including keys for handling localization of your notification text.
Tap to App
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.
Learn how to handle a silent notification, downloading data in the background so it's ready when your user opens your app.
Learn how to add actions (buttons) to your notification, so your users can respond without opening your app.
Learn about provider servers, which store your users' device tokens, to construct push notification requests to APNs.
Learn how to send device tokens to your provider server, which could be a Vapor server running on your Mac.
Let's review where you are with push notifications basic concepts, and discuss what's next in this course.
Part 2: 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.
Learn how to set up a notification service extension to decrypt an encrypted payload before presenting the notification to your user.
Learn how to debug a service extension — it's a separate target, so you have to take a few extra steps.
Practice debugging your extension by seeing what happens when you comment out the
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.
Badging the App Icon
Learn how to share data between your app and its service extension, to manage the app badge count locally.
Let's review how you can use notification service extensions to modify the payload, and discuss what's next.
Part 3: 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.
Custom UI Category
Learn how to set up a notification content extension — there's an extra step, to associate it with a payload category.
3D-Touch to Map
Learn how to display a map view when your user 3D-touches your notification — much more useful than coordinates!
Learn how to use your notification UI to get text input from your users in response to a push notification.
Learn how to respond to your user tapping a button in your notification by dynamically modifying the buttons.
Practice implementing dynamic actions, through a hands-on challenge: Replace one button with two buttons.
Learn how to attach media — downloaded by the service extension — to your content extension's custom UI.
Custom User Input
Learn how to get custom user input by making your content extension first responder, and presenting a custom user input view.
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.
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
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.
Explore the sample project, and finish setting up its
tableView to manage local notifications.
Learn how to create triggers, content, identifiers and requests for time-based and calendar-based notifications.
In this video you'll learn how to create trigger, content, identifier and request for location-based notifications.
Refer back to Part 1 of this course, to control what happens when your user taps a local notification.
Let's review what you've learned in this course about creating, sending and receiving remote and local push notifications.