From the course: iOS and watchOS App Development: Notifications
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Add the content extension
From the course: iOS and watchOS App Development: Notifications
Add the content extension
- [Instructor] You've loaded content to the service extension. There's another extension that gives you a storyboard to format your output and add other types of objects. The content extension gives you a view controller and storyboard to create your own notifications. To add a content extension, you're going to go to File, New, and Target. Under iOS, you'll find the Notification Content Extension. Select it and hit Next. You'll save it as a name. And, again, I'm going to include ContentExtension on the end of my app name. Click Finish and Activate. You'll find a new target on the navigator. Open it up and it has three files, a ViewController, a storyboard, and an info.plist. Open up the storyboard, give yourself some space, and you'll find a very short looking scene. It's here you will design your notification.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Add the content extension1m 15s
-
(Locked)
Change the UI3m 53s
-
(Locked)
Code the view controller4m 9s
-
(Locked)
Change plist settings3m 6s
-
(Locked)
Customize actions3m 4s
-
(Locked)
Customize requests4m 15s
-
(Locked)
Add buttons2m 57s
-
(Locked)
Use buttons for actions3m 31s
-
(Locked)
Code the snooze button3m 57s
-
(Locked)
-
-
-