sorry to bring this old thread back to life but I think that the question is still not answered.
clearAllNotifications() only deletes/clears notifications that are already delivered but not the ones that are still in the queue.
Is there any way to delete all notifications in a queue?
If we’re talking Android, however, then it seems to me that there simply isn’t a way to “clear all not-yet-delivered notifications”. See NotificationManager and you’re welcome to point out if I’m missing something.
cancelAllLocalNotifications() worked for me until I linked the iOS 10’s UserNotification’s framework. With that linked I can post local notifications with the old API but the cancel all stopped working. – shelll
Ugh I hope this isn’t correct. These platforms certainly make us dance to keep things working.
I only tested it on Android so far and it does not seem to cancel it there. Thanks for pointing out that it is implemented for iOS, gonna test that tonight.
Seems indeed from the documentation that it is not possible in the same way as it is on iOS. Do you know of any workaround, for example by using the areNotificationsEnabled() function to block notifications? Seems like a weird constraint to me.
Sorry for picking up this old thread, but is there any workaround yet to delete an (or even all) scheduled Notifications which were set with LocalNotify.later ?