iOS clear push notifications

I did same in my application that read notifications don't remain in Application. Buts its not how you think it is.

i Saved Remote Notification in method didReceiveRemoteNotification: in DataBase (Coredata). Everytime i was in NotificationViewController i retrieved from DataBase (Coredata) and when i want to clear them i-e on Reading , deleted that particular Notification form DB.

thats how you should do it.

OR https://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS7.html#//apple_ref/doc/uid/TP40013162-SW1 Apple says in iOS 7 user can send "silent" push notifications—that is, notifications that do not display alerts or otherwise disturb the user. By receieving this type "silent" in method application:didReceiveRemoteNotification: do this [[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0]; [[UIApplication sharedApplication] cancelAllLocalNotifications];


Just ask your backend to send a push with the payload:

{
    "aps" : {
        "badge" : 0
    },
}