0

I am trying to get local notifications to work based on times. I have created an instance of localNotification but am simultaneously trying to get times and dates right while creating the local notifications.

For debugging purposes, is there a way to see what local notifications are scheduled?

I've tried the following but don't see anything firing:

 [[UIApplication sharedApplication] scheduleLocalNotification:reminderNotification];
 scheduled++;
 [[UIApplication sharedApplication] presentLocalNotificationNow:reminderNotification];
 scheduled++;

Thanks for any suggestions.

Leo
  • 37,640
  • 8
  • 75
  • 100
user1904273
  • 4,562
  • 11
  • 45
  • 96

1 Answers1

2

Yes you can:

[[UIApplication sharedApplication] scheduledLocalNotifications]

will return an array of existing notification instances.

Leo
  • 37,640
  • 8
  • 75
  • 100