views:

272

answers:

2

As part of an app I'm writing, it keeps a list of reminders and uses local notifications to display them at the required time.

What I would like to determine is a list of these notifications so that I don't have to recreate the list upon each edit or new notification.

Is there any documentation or examples/tutorials that demonstrate this behaviour?

Thanks, Matt.

A: 

No, and I’m afraid it’s not a good choice. Push notifications are not meant to be used as true data, and it can expire, get overwritten by newer notifications, etc. Notifications can have iOS launch your app, but that’s it and that’s not going to happen 100% (the user might just dismiss the notification).

Evadne Wu
+2  A: 

He is talking about local notifications, not push notifications. You can use [[UIApplication sharedApplication] scheduledLocalNotifications] to get the complete list of scheduled notifications.

jmdecombe
That's surprisingly simple to implement. Thanks heaps for your response.
Matt Delves