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.

Change plist settings

Change plist settings

From the course: iOS and watchOS App Development: Notifications

Start my 1-month free trial

Change plist settings

- [Instructor] With outlets set and populated, we've got one more step to go. There's one more file in the extension we've yet to look at. Head over into the info.plist. Towards, the bottom, you'll see one that says NSExtension. Open that. And inside there you'll see NSExtensionAttributes, open that. You'll find in there the UNNotificationExtension category. ContentExtensions run off of categories. So the category of this property is the category of a notification found in the content .category. So click on this and change myNotificationCategory to snooze.category. This extension with run only for the snooze notifications. If an extension is another category, it will not run. If you forget this category, it will not work for you. We've got that set now, so we're ready to run. Make sure that it's not in the ContentExtension. Very often, you'll see that it's got the E for the ContentExtension. Make sure that you are running the PizzaNotification and make sure you've got your device…

Contents