4
使用cancelAllLocalNotifications
基本上應該是cancel the delivery of all scheduled local notifications
。但它會繼續並清除歷史記錄,因此通知中心不會顯示最近的1/5/10最近的項目/通知。爲什麼調用cancelAllLocalNotifications會刪除/清除通知中心?
我不確定這是一個bug還是這是故意的?
也許我應該使用cancelLocalNotification:
來取消預定的本地通知(計劃在將來觸發)。但是這會對本地通知限制產生影響嗎?
當我們取消本地通知時,仍然不刪除第二個本地通知。 – ravoorinandan