Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anyway to view scheduled local notifications

Is there a way to view all of the currently scheduled local notifications for my app?

Just trying to do some debugging, and it would be nice to see the list of notifications, instead of having to wait until they fire.

_mike

like image 801
nibeck Avatar asked Aug 18 '13 17:08

nibeck


Video Answer


1 Answers

This gives you an array with all local notifications scheduled. You can loop through it

UIApplication *app = [UIApplication sharedApplication];
NSArray *eventArray = [app scheduledLocalNotifications];
like image 161
Lucas Eduardo Avatar answered Oct 12 '22 21:10

Lucas Eduardo