locked
long toast usage question

    Question

  • Hello,

    I have a questio on long toast usage:

    I have one information which need to show as long toast, and I show it up, it last for 25 seconds,

    before it dismissed, a new message arrived, and need to shown up.

    How can I close the first long toast before show up the new one.

    (I need to show only one toast, the last one toast, which is more fresh and correct to end user.)

    How ?

    Thanks.


    programmer

    Wednesday, January 16, 2013 11:45 AM

Answers

All replies

  • Hi,

    Did you enable the notification queue?
    By default, a tile on the Start screen displays the content of a single notification until a new notification replaces the current notification. With notification queuing enabled, up to five notifications are maintained in the queue and the tile cycles through them.

    Maybe you can try disable the notification queue.
     http://msdn.microsoft.com/en-us/library/windows/apps/hh781199.aspx

    Best regards,
    Jesse


    Jesse Jiang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, January 18, 2013 5:28 AM
  • hello,

    My question is about Toast notification, not tile notification.

    and disable the notification queue did not work for Toast.

    so my question is : how can I close the long Toast which has already be issued ?


    programmer

    Friday, January 18, 2013 6:32 AM
  • Sorry I misunderstand your question. I found a function ToastNotifier.Hide function. We can use this API to hide specified toast notification.

    ToastNotificationManager::CreateToastNotifier()->Show(toast);
    ToastNotificationManager::CreateToastNotifier()->Hide(toast);

    Or you can operator the ScheduledToastNotifications from the getScheduledToastNotifications

    Please take a look of http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.notifications.toastnotifier.aspx

    Best regards,
    Jesse


    Jesse Jiang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Jesse Jiang Wednesday, January 23, 2013 2:59 AM
    • Unmarked as answer by Jesse Jiang Wednesday, January 23, 2013 2:59 AM
    • Marked as answer by Jesse Jiang Friday, February 1, 2013 8:33 AM
    Monday, January 21, 2013 7:39 AM
  • Hi,

    Would you mind letting me know the result of the suggestions? If you need further assistance, feel free to let me know. I will be more than happy to be of assistance.

    Best regards,
    Jesse


    Jesse Jiang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, January 23, 2013 2:59 AM
  • i will try soon and notify you when got news~~ thanks so much for your feedback ~~

    programmer

    Thursday, January 24, 2013 1:20 AM
  • Hello,

    It works to use Hide to close the long toast .Thanks so much.


    programmer

    Friday, February 1, 2013 8:12 AM