From the course: iOS and watchOS App Development: Notifications

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Custom group notifications

Custom group notifications

From the course: iOS and watchOS App Development: Notifications

Start my 1-month free trial

Custom group notifications

- [Instructor] You may already have seen the grouping behavior of Notifications. Let's take a little closer look at this. While the app is still running, go over here. I'm going to schedule a bunch of pizzas, I'm going to make a bunch of pizzas, schedule a couple more. Head over to Manage Notifications, hit Next Pizza Step a couple of times. You'll start to see them pop up on top here. Wait 'til enough of them appear, and once they're all done showing up here, slide down the Notification Manager, and you'll see that they're in a big stack. This is the grouping behavior of Notifications. With the top the most recent and descending in time order. Clear these notifications by clicking on them, and you'll see there's an X here. Click X and Clear. Then stop the app. I want my scheduled and make pizza notifications in two different groups. There's a content property thread identifier which you use as an identifier to control grouping. In the ViewController, go to the schedulePizza, first…

Contents