如何在通用项目中的 Windows Phone 8.1(通用应用程序)中使用提醒或闹钟
在Windows Phone 8中,您可以使用Microsoft.Phone.Scheduler命名空间添加提醒
Reminder reminder = new Reminder("myreminder")
{
Title = " app reminder",
Content = "Reminder !",
BeginTime = DateTime.Now.AddHours(3),
RecurrenceType = RecurrenceInterval.Daily,
ExpirationTime = DateTime.Today.AddDays(30),
NavigationUri = new Uri("Page1.xaml", UriKind.Relative)
};
ScheduledActionService.Add(reminder);
但是我如何在 Windows Phone 8.1 中使用它,或者为我提供另一种方法在 Windows Phone 8.1 中执行此操作。
如您所知,即使应用程序关闭,闹钟或提醒也会在后台运行。
最佳答案
在 Windows Phone 8.1 Store/XAML 应用中,第 3 方开发人员无法访问提醒和警报的 api。
关于c# - 在 Windows Phone 8.1 C# 中创建警报或提醒?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24865354/