简体   繁体   English

在Windows Phone 8.1 C#中创建警报或提醒?

[英]Create Alarm or Reminder in Windows Phone 8.1 C#?

How I can Use Reminder or Alarm in Windows Phone 8.1(Universal Apps) in Universal Project 如何在Universal Project中的Windows Phone 8.1(Universal Apps)中使用提醒或警报

in windows phone 8 ,you can added reminder by using Microsoft.Phone.Scheduler Namespace 在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);

But how I can use it in windows phone 8.1 or provide me another way to do it in windows phone 8.1. 但是我如何在Windows Phone 8.1中使用它,或者提供给我另一种在Windows Phone 8.1中使用它的方法。

as you know the alarm or reminder working in background even if the app closed . 如您所知,即使应用程序关闭了,警报或提醒仍在后台运行。

在Windows Phone 8.1 Store / XAML应用程序中,第三方开发人员无法使用“提醒和警报”的api。

WP8.1 - No Alarms & Reminders

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM