mohabouje / WinToast

WinToast is a lightly library written in C++ which brings a complete integration of the modern toast notifications of Windows 8 & Windows 10. Toast notifications allows your app to inform the users about relevant information and timely events that they should see and take action upon inside your app, such as a new instant message, a new friend request, breaking news, or a calendar event.
MIT License
688 stars 127 forks source link

Toast does not remain in action center after #43

Open kowlown opened 5 years ago

kowlown commented 5 years ago

A fired toast does not remain in the action center, once the foreground notification disappear, the notification in the action center disappear too. It disappear immediately. It would be better if the toast disapper only when dismissed manually.

when I read the documentation at : https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/send-local-toast-desktop-cpp-wrl at step 4 there are the lines :

You must impelment a handler for toast activation, so that when the user clicks on your toast, your app can do something. This is required for your toast to persist in Action Center (since the toast could be clicked days later when your app is closed). This class can be placed anywhere in your project.

kowlown commented 5 years ago

A fire toast does not remain in the action center, on the foreground notification time is passed. It disappear immediately. It would be better if the toast disapper only when dismissed manually.

when I read the documentation at : https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/send-local-toast-desktop-cpp-wrl at spet 4 there are the lines :

You must impelment a handler for toast activation, so that when the user clicks on your toast, your app can do something. This is required for your toast to persist in Action Center (since the toast could be clicked days later when your app is closed). This class can be placed anywhere in your project.

mohabouje commented 5 years ago

@kowlown could you provide an example of this issue?

WinToast does keep the notifications in the action center by default if the user does not dismiss it or Windows does not hide them. Make sure that there is nothing wrong in your Windows configuration. See: https://github.com/mohabouje/WinToast#toast-configuration-on-windows-10

Once the toast is in the action center, WinToast does no longer get any callback or event from there. This is an issue that has been discussed in this issue #35

easly1989 commented 5 years ago

Well, the issue is exactly as @kowlown said.

  1. Create the Toast
  2. Wait until the Toast times-out and disappears from the screen
  3. The toast is not anymore in the Action Center

The expected behavior (customizable if possible), would be to leave the Toast in the Action Center, unless the user clicks on the Toast to hide it.

So this

WinToast does keep the notifications in the action center by default if the user does not dismiss it or Windows does not hide them

seems to not be working properly!

I've checked my Notification Settings (as described here, and it is all good.

Hope that the explanation was clean enough, Than you for all your work @mohabouje

I-Rinka commented 4 years ago

@kowlown could you provide an example of this issue?

WinToast does keep the notifications in the action center by default if the user does not dismiss it or Windows does not hide them. Make sure that there is nothing wrong in your Windows configuration. See: https://github.com/mohabouje/WinToast#toast-configuration-on-windows-10

Once the toast is in the action center, WinToast does no longer get any callback or event from there. This is an issue that has been discussed in this issue #35

I know his means since I'm facing the same problem. The effect what I want is just like the Screen Capture in the newest Windows 10 -- Capturing a photo, and user hide the notification into the action center. When user need it, open the action center and click the remaining notification to get the photo.

//Sorry my English might no very good.