I am writing to use notification listener to read whatsapp notifications and cancel it after read. but it does not cancel the notification (no action done).
B4X:
Sub Listener_NotificationPosted (SBN As StatusBarNotification)
'do sth to handle msg
'cancel notification after read
SBN.notification.cancel(SBN.id)
End Sub