I would like to clear delivered notifications from notification centre based on what a user does. So, if they view a certain screen, remove the relevant notification etc.
There may be more than one delivered notification for the app, but I may not want to clear all of them.
How can I list all the delivered notifications that are showing in notification centre from my app, and then programatically remove the relevant notification?
I have looked at this thread Can I programmatically clear my app's notifications from the iOS 5 Notification Center? however it does not seem to show how I can list delivered notifications so that I can then programatically remove the relevant one(s).