0

我一直在尋找一種方法來編寫一個方法,我可以調用我的應用程序中的一個按鈕來刪除從服務器端收到的所有通知,並從通知中心iOS中刪除所有通知,我嘗試了所有建議解決方案:iOS示例代碼清除通知中心的應用程序通知?

iOS remove notification from notification center

iOS application: how to clear notifications?

iOS application: how to clear notifications?

是沒有什麼辦法,我能得到辦理通知C內的通知進入並做明確或刪除

問候,

回答

0

感謝所有,

我已經嘗試如此多的代碼後,解決了我的問題,我叫上一個按鈕的方法和它在這個片段的工作:

[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 1]; 
[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0]; 

Regards,

相關問題