-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click event is not fired from Action Center #35
Comments
I'm not sure, but I think that the App User Model ID is not a valid one, the expect format is the one that you can find in this link:
There is a helper function in the class to avoid those problems. Try it and I will try to figure out a way to reproduce the problem. |
Yes, you are rigth, I changed it to:
But the issue persist. To reproduce it, follow those steps:
In my case, the last event I see in console is "Toast has timed out". Method |
Hi @mohabouje, is there any update on this? |
I encountered the same issue. Once a notification message disappears and goes to Windows Action Center, click event is not triggered when clicking on the notification from Action Center. |
@malja @jiakuan guys, this is not implemented yet If you check the src code you will find a link with the modifications to be implemented. The library need to create a notification activator:
Then you have to register AUMID and the COM server:
All the information can be found here: Send a local toast notification from desktop C++ WRL apps Right now, I'm a little bit busy but I will try to do it as soon as possible. You are free to implement it by yourself and create a PR to share with the community! Any contribution is welcome! |
@mohabouje I am sorry for the delay. I had no time for programming lately. But yesterday I basically did step by step follow up of linked tutorial. But my What works is that program is executed with In addition, I have not found a way of defining UUID for My source code: https://github.com/malja/WinToast/tree/background/WinToast PS: Notifications are not removed from Action Center when clicked. This should be implemented in Activator class. There is a tutorial on it. But it involves notification tags. And I wanted the code to stay as simple as possible before all bugs are fixed. Any ideas? |
Hi - I'll try to dig into this a bit more on my own, but do you know why I would be able to run the WinToast console demo from Visual Studio, yet not be able to run it as a standalone (or from the start menu, where the demo installs it as "yolo")? The console window flashes and then nothing happens. Thank you. |
OK. The solution is rather simple. I was trying to execute the program without any arguments. The console flashed briefly and the program quit. Running that console app from another cmd window shows the help args listed out. Once I added command args, the app works normally. Thanks. |
@mohabouje Any update on this? |
Hi all,
I'm using following code (basically simplified WinToast example) to create a notification with attached event handler and one action:
The problem is, when notification is moved to Action Center (after short duration expires), either toastActivated(void) nor the toastActivated(int) method of CustomHandler is called.
Is something wrong with the code, or is this normal and intended behavior? If so, I need to get them working from Action Center, is there a way?
Thank you.
The text was updated successfully, but these errors were encountered: