How can I remove a specific notification when I don't know the notification id (when app was not running and OS generated the notifications)? I don't want to use notificationManager.cancelAll()
because there are multiple types of notifications and I can't use notificationManager.cancel(id)
because I don't know the ID of that notification.
I've already gone through most of the SO threads so please don't mark it as a duplicate of the following:
How to clear a notification in Android
How to remove push notifications that have already been sent?