I have 2 background tasks that trigger for toast notifications.
I have 2 buttons on the toast, Yes and Not Now. When the buttons are clicked both the tasks are triggered as the button click also changes the history of the toast.
I can only see one of the two possible solution:
Please help.
How to remove history change event of toast notification on actin button click?
Unfortunately, we could not remove HistoryChangedTriggerDetail
, if you have register it, it is by design. Derive from this case reply.
Subscribing this trigger, will allow your app to get notified when:
If you click actin button, the toast will remove by default. so ToastNotificationHistoryChangedTrigger
and ToastNotificationActionTrigger
will be invoked at same time.