尝试从通知中心删除该应用程序的所有通知。
这可能会对您有所帮助。
在 Appdelegate 里面的 handleActionWithIdentifier
添加以下代码
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:1];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
例子
-(void) application:(UIApplication*) application handleActionWithIdentifier:(NSString *)identifier forLocalNotification:(UILocalNotification *)notification completionHandler:(void (^)())completionHandler {
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:1];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
}