zroya icon indicating copy to clipboard operation
zroya copied to clipboard

No Events if Notification is in Action Center

Open AmFreaks opened this issue 7 years ago • 2 comments

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.

AmFreaks avatar Apr 27 '18 22:04 AmFreaks

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.

malja avatar Apr 30 '18 20:04 malja

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.

yanone avatar Nov 25 '18 11:11 yanone