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.

Grouped push notifications

Grouped push notifications

From the course: iOS and watchOS App Development: Notifications

Start my 1-month free trial

Grouped push notifications

- [Man] There's one caution I'd like to point out, with push notifications compared to local notifications. Since you are not controlling the payload, you do not control the thread-identifier push to a device. Why is that important? While you've still got an app running here, start up a bunch of schedule pizza notifications. Now go to APNS Tester and send about five or six push notifications. Once they start to show up on the device, head over to the notifications manager. You have two groups, one for the push and one for the local notifications. Snoozing the push notification, clears all the notifications but still creates a separate notifications group. The thread-identifier is the culprit. Click the home button to clear the notification manager. Let's look at the payload again, there's no thread identifier here, so the push notification leaves it blank. If you go to the view controller where we set up the local notification, you'll see we have a thread-identifier of scheduled…

Contents