locked
Number of current tiles updates in the notification queue?

    Question

  • I am using the notification queue to view up to 5 tile updates. Now, I would like to view a badge counter with the number of updates currently in the queue, obviosuly this coule be 0-5.

    I have tried this code:

    var updater = TileUpdateManager.CreateTileUpdaterForApplication();
    int count = updater.GetScheduledTileNotifications().Count();

    ..but the the method always returns 0 even if there are several updates on the tile...

    What is wrong?

    Monday, May 26, 2014 6:50 PM

Answers

  • Hi,

    There do not have direct API can get the number of updates title in the queue. You should implment in yourself. When queuing is enabled, a maximum of five tile notifications can automatically cycle on the tile. By default, the replacement policy for notifications in the queue is first in, first out (FIFO); when the queue is full and a new notification arrives, the oldest notification is removed. So when the time interval you sent notification below the notification updates, the number in the queue is 5. If the time interval you sent notification Higer the notification updates,the the number in the queue is less than 5.

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Southbranch Tuesday, May 27, 2014 12:07 PM
    Tuesday, May 27, 2014 9:22 AM

All replies

  • Hi,

    How many title updates do you schedule. The code of

    updater.GetScheduledTileNotifications().Count()

    means you can get number of scheduled title updates.

    Please see How to schedule a tile notification

    And refer to the sample:

    Scheduled notifications sample

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Tuesday, May 27, 2014 3:12 AM
  • Thanks, my mistake... Naturally this method only works when using scheduled updates as the name very well indicates.

    I am using manual/local updates and uses the notification queue (FIFO). There is no way no know in advance how many updates will be sent into the queue over a time frame, only that it displays/rolls a maximum of five updates at the time.

    Any other way to found out how many there are in the "roll-queue" (0-5)?

     

    Tuesday, May 27, 2014 6:51 AM
  • Hi,

    There do not have direct API can get the number of updates title in the queue. You should implment in yourself. When queuing is enabled, a maximum of five tile notifications can automatically cycle on the tile. By default, the replacement policy for notifications in the queue is first in, first out (FIFO); when the queue is full and a new notification arrives, the oldest notification is removed. So when the time interval you sent notification below the notification updates, the number in the queue is 5. If the time interval you sent notification Higer the notification updates,the the number in the queue is less than 5.

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Southbranch Tuesday, May 27, 2014 12:07 PM
    Tuesday, May 27, 2014 9:22 AM