No Events if Notification is in Action Center
When Notifications are in the Action Center the events no longer work. I.e clicking on it or a button no longer has an effect. Tried with onAction and onClick.
Hi @AmFreaks, thank you for report.
This is the code I'm using for creating a notification with an action event attached.
import time
import zroya
# Handle onClick event
def handler(id):
print(id)
# Handle onAction event
def handler2(id, id2):
print(id, id2)
zroya.init("python", "B", "C", "D", "E")
t = zroya.Template(zroya.TemplateType.Text1)
t.setFirstLine("Text")
t.addAction("Action")
print(zroya.show(t, on_click=handler, on_action=handler2))
time.sleep(15)
I got onAction event working from Action Center. The onClick event is not fired from there though, which it obviously should be.
I'll will have a look at it. Right now it seems that this has something to do with WinToast and not my implementation. Pure C/C++ code behaves the same.
I got onAction event working from Action Center. The onClick event is not fired from there though, which it obviously should be.
Not for me. Neither works for me as soon as the message disappears from the screen into the action center.
Just +1ing.