Powie Member Licensed User Longtime User Jul 17, 2018 #1 How can I cancel a notification, created with NB6 ?
Erel B4X founder Staff member Licensed User Longtime User Jul 18, 2018 #2 It doesn't matter how you create the notification. You should call Notification.Cancel to cancel it. Upvote 0
Powie Member Licensed User Longtime User Jul 18, 2018 #3 So, now I understand the difference..... n.Cancel(1) was only for the old Notification style possible. Without Cancel: B4X: Dim n As NB6 .... n.Build("title", "collapsed content", "tag", Me).Notify(1) With Option to Cancel: B4X: Dim n As NB6 Dim notif As Notification notif = n.Build("title", "collapsed content", "tag", Me) notif.Notify(1) ... notif.Cancel(1) Upvote 0
So, now I understand the difference..... n.Cancel(1) was only for the old Notification style possible. Without Cancel: B4X: Dim n As NB6 .... n.Build("title", "collapsed content", "tag", Me).Notify(1) With Option to Cancel: B4X: Dim n As NB6 Dim notif As Notification notif = n.Build("title", "collapsed content", "tag", Me) notif.Notify(1) ... notif.Cancel(1)