How long can I set the ScheduledToastNotification.DeliveryTime?

MG Bhadurudeen 626 Reputation points

Hello, I read the Microsoft documentation about ScheduledToastNotification.DeliveryTime, but nowhere it is mentioned about the maximum time I can set. Can I set the delivery time as that it should show after 6 months? Any documentation about this?

//dueTime = DataTime.Now + (6 months + 8 days + 3 hours);

// Create the toast notification object.
var toast = new Notifications.ScheduledToastNotification(toastXml, dueTime); = "Toast" + idNumber;

// Add to the schedule.

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Richard Zhang-MSFT 6,936 Reputation points


    Welcome to Microsoft Q&A.

    ScheduledToastNotification.DeliveryTime has no time limit.

    You can do a simple test, set the date to one year later, and manually adjust the system time. After the predetermined time is reached, the notification will pop up.

    But if the app is uninstalled, the notification will also be cancelled.


    0 comments No comments

0 additional answers

Sort by: Most helpful