0

I want to schedule local notification everyday 10 o'clock.

DateTime EventDate = new DateTime(2016, 02, 11, 17, 52, 20);
            TimeSpan NotTime = EventDate.Subtract(DateTime.Now);
            DateTime dueTime = DateTime.Now.Add(NotTime);

            ScheduledToastNotification scheduledToast = new ScheduledToastNotification(content, dueTime);
            ToastNotificationManager.CreateToastNotifier().AddToSchedule(scheduledToast);

but what happend is in the above code perticuler date and time has given. but I want to everyday 10 o'clock schedule the notification.how to schedule please help me.

Pavan Reddy
  • 173
  • 1
  • 3
  • 11

1 Answers1

0

Background task are helpful in this case. And in background task you can check current Time with 10:00 clock and do your necessary logic.

Kishor Bikram Oli
  • 1,748
  • 1
  • 22
  • 40