C catyinwong Active Member Licensed User Longtime User Jul 9, 2023 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Jul 10, 2023 #2 What is the output of: Code: Log(SBN.As(JavaObject).RunMethod("isClearable", Null)) Upvote 0
C catyinwong Active Member Licensed User Longtime User Jul 14, 2023 #3 Erel said: What is the output of: Code: Log(SBN.As(JavaObject).RunMethod("isClearable", Null)) Click to expand... True Upvote 0
Erel said: What is the output of: Code: Log(SBN.As(JavaObject).RunMethod("isClearable", Null)) Click to expand... True
Erel B4X founder Staff member Licensed User Longtime User Jul 16, 2023 #4 Not sure. Based on Android documentation it should work. What is the OS version? Upvote 0