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.

Notification testing

Notification testing

From the course: iOS and watchOS App Development: Notifications

Start my 1-month free trial

Notification testing

- [Instructor] We've put together enough code to run the application and see how they present themselves. Now, I'm going to make sure this shows up. And I'm going to do that for two things, like I talked about earlier. First of all, I'm going to remove provisional and second of all, I'm going to restart the simulator. So, I'm sure this will actually work exactly the way I want it to. So, I'm going to erase all content and settings and hit erase. Let that reboot. And now I'm going to build and run. It immediately asks me if I want to send you a notification. I'm going to go ahead and hit allow. I'm going to go ahead and hit the Schedule a Pizza button a couple of times, just to see if we can get something going here. Then I'm going to hit Command Shift H to go to the home. There we go, we see our notification. If you click on the notification, the app will launch. Since I've already lost it, what I can also do is slide down here, go to the notification manager, and either I click it or…

Contents