Matt Delves
Matt Delves

Reputation: 1605

retaining a list of all local push notifications in iOS 4

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.

Upvotes: 3

Views: 2922

Answers (2)

jmdecombe
jmdecombe

Reputation: 782

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

Upvotes: 12

Evadne Wu
Evadne Wu

Reputation: 3200

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).

Upvotes: 1

Related Questions