I want to delete all pending notifications if the user launches the application through the start icon. This relates to this question (iOS) How to catch all iOS Push notifications with various user actions, including clicking on the application icon , only that I do not care about any data / data from notifications.
Is it possible?
(So far, I read in the docs that you can cancel certain notifications. A simple call to .clearAll () would be better)
Regards, Richard
NotificationManager clearAll(),
clearAll()
MainActivity:
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); nm.cancelAll();