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.
Remove all notifications
From the course: iOS and watchOS App Development: Notifications
Remove all notifications
- [Instructor] As we try new concepts in this course, notifications in our app can get a bit messy. This may also be true for your user, in some circumstances, who could get confused by old notifications. One way to deal with this mess is to reset the simulator. Which was great for permissions, but when working with notifications or for clearing things for a user, it's not the greatest solution. I'll add a way to remove all pending notifications. So if I have any repeating ones, I can remove everything without resetting my phone every time. Before I do, I'm going to remove the repeating notification so the repeating is not annoyingly long for a video. Switch back to the original trigger, in Make Pizza. So, I'm going to go back over here to the view controller, Make Pizza, I'm going to un-comment this and comment this. Which makes life a lot easier. Then hit back over to manage notification view controller and find the remove all notifications IB Action, which should be right above…
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)
Pending notifications3m 57s
-
Unique identifiers3m 41s
-
(Locked)
Delivered notifications4m 7s
-
(Locked)
Update notification content5m 45s
-
(Locked)
Update pending notifications4m 5s
-
(Locked)
Remove notifications3m 55s
-
(Locked)
Repeating notifications5m 31s
-
(Locked)
Remove all notifications2m 23s
-
(Locked)
Custom group notifications4m 59s
-
(Locked)
-
-
-
-
-
-
-
-