Mrphone Member May 3, 2020 #1 Hi guys I made a simple notification Code: dim notif as Notification notif.Initialize notif.Icon = "icon" notif.AutoCancel = True notif.SetInfo("Title", "This is body.", Me) notif.notify(1) I want to do something whenever the notification is canceled is it possible?
Hi guys I made a simple notification Code: dim notif as Notification notif.Initialize notif.Icon = "icon" notif.AutoCancel = True notif.SetInfo("Title", "This is body.", Me) notif.notify(1) I want to do something whenever the notification is canceled is it possible?
Erel B4X founder Staff member Licensed User Longtime User May 3, 2020 #2 You should use NB6 and set DeleteAction. Upvote 0
Mrphone Member May 3, 2020 #4 Excuse me, but what should I do if we want to cancel the announcement? What commands should be used? This class does not have a cancellation order: NB6.Cancel(1) --------------------------------- The AutoCancel(True) or AutoCancel(False) command does not work at all Code: n.Initialize("default", Application.LabelName, "HIGH").AutoCancel(True).SmallIcon(LoadBitmap(File.DirAssets,"noti_play.png")) _ .LargeIcon(LoadBitmap(File.DirAssets,"logo.png")).Color(Colors.RGB(187,127,42)) n.Build("title", "content", "tag1", Me).Notify(1) Last edited: May 3, 2020 Upvote 0
Excuse me, but what should I do if we want to cancel the announcement? What commands should be used? This class does not have a cancellation order: NB6.Cancel(1) --------------------------------- The AutoCancel(True) or AutoCancel(False) command does not work at all Code: n.Initialize("default", Application.LabelName, "HIGH").AutoCancel(True).SmallIcon(LoadBitmap(File.DirAssets,"noti_play.png")) _ .LargeIcon(LoadBitmap(File.DirAssets,"logo.png")).Color(Colors.RGB(187,127,42)) n.Build("title", "content", "tag1", Me).Notify(1)
Erel B4X founder Staff member Licensed User Longtime User May 3, 2020 #5 You asked: "I want to do something whenever the notification is canceled " The answer is that you should set the DeleteAction and then intercept the intent based event when the notification is canceled. If you want to cancel the notification yourself then it is a completely different question. Upvote 0
You asked: "I want to do something whenever the notification is canceled " The answer is that you should set the DeleteAction and then intercept the intent based event when the notification is canceled. If you want to cancel the notification yourself then it is a completely different question.
Mrphone Member May 3, 2020 #6 Erel said: You asked: "I want to do something whenever the notification is canceled " The answer is that you should set the DeleteAction and then intercept the intent based event when the notification is canceled. If you want to cancel the notification yourself then it is a completely different question. Click to expand... Excuse me , Yes, that's a different question. Do I need to create a new topic? Upvote 0
Erel said: You asked: "I want to do something whenever the notification is canceled " The answer is that you should set the DeleteAction and then intercept the intent based event when the notification is canceled. If you want to cancel the notification yourself then it is a completely different question. Click to expand... Excuse me , Yes, that's a different question. Do I need to create a new topic?
Erel B4X founder Staff member Licensed User Longtime User May 3, 2020 #7 Yes, of course. There should only be a question in the very first post. Upvote 0