How long can I set the ScheduledToastNotification.DeliveryTime?

MG Bhadurudeen 626 Reputation points
2020-06-29T01:22:41.13+00:00

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.id = "Toast" + idNumber;

// Add to the schedule.
Notifications.ToastNotificationManager.createToastNotifier().addToSchedule(toast);

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

Accepted answer
  1. Richard Zhang-MSFT 6,936 Reputation points
    2020-06-29T06:19:06.53+00:00

    Hello,

    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.

    Thanks.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.