My app schedules a UILocalNotification in the background, which is added to Notification Center. However, when the notification is tapped in Notification Center, the app is opens, but the notification remains in Notification Center. How can it be removed please?
Asked
Active
Viewed 2,430 times
1
-
Similar to this [question](http://stackoverflow.com/questions/5545292/delete-a-uilocalnotification-at-a-certain-indexpath) – Nathan Nov 24 '11 at 18:28
-
No, I do not want to cancel the notification. I want to clear it from Notification Center (which one pulls down from the top of the screen) after the user has tapped on it and the app has been launched – RunLoop Nov 24 '11 at 18:37
-
Try [this](http://stackoverflow.com/questions/7773584/can-i-programmatically-clear-my-apps-notifications-from-the-ios-5-notification) – Nathan Nov 24 '11 at 18:45
-
Actually your first link turned out to be what I needed. If you post it as an answer I will accept it. Thank you. – RunLoop Nov 24 '11 at 19:01
-
this doesn;t clear the notification, just deletes it. If you have a repeat interval in place 'next fire date' will no longer fire. – Nik Burns Feb 04 '12 at 00:28