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.

Types of media

Types of media

From the course: iOS and watchOS App Development: Notifications

Start my 1-month free trial

Types of media

- [Instructor] While we've done a lot with text, you might want some rich media in your notification. There's two to get rich media in your notification: attachments and the content extension. We'll first look at attachments. Attachments work on the basic notification. So I'll turn off the content extension. The easiest way to do that is, let's go here and open the navigator so we can get over here to info.plist. And if we look at the notification extension, if you remember what I told you, that this works on a specific category. If you change the category, so for example, I'll put an R in here and make this snoozer.category. Now it can't find the extension, and it will shut down the extension. So we've got that taken care of. I'm going to now go up here to Huli Pizza Notification, and I'm going to add some media files. And I've included those in the Exercise Files under 09_01. You'll find these media files under the file Media. And now what we're going to do is we're going to select…

Contents