本文介绍了后台任务 SystemTriggerType.SmsReceived 不会触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在后台 Windows Phone 8.1 中测试任务,但触发器 SystemTriggerType.SmsReceived 对我不起作用.有没有人设法让它工作?

I'm testing tasks in background windows phone 8.1 but the trigger SystemTriggerType.SmsReceived is not working for me . Has anyone managed to make it work ?

我使用了 MS 后台任务的这个示例,但只有原始版本有效.

I used this example of the MS background task , but only the original version worked.

代替这个:

var task = BackgroundTaskSample.RegisterBackgroundTask ( BackgroundTaskSample.SampleBackgroundTaskEntryPoint, BackgroundTaskSample.SampleBackgroundTaskName ,new SystemTrigger ( SystemTriggerType.TimeZoneChange , false) ,null) ;

关于这个:

var task = BackgroundTaskSample.RegisterBackgroundTask (BackgroundTaskSample.SampleBackgroundTaskEntryPoint, BackgroundTaskSample.SampleBackgroundTaskName , new SystemTrigger ( SystemTriggerType.SmsReceived , false) ,null) ;

推荐答案

SystemTriggerType.SmsReceived 仅适用于第一方应用程序.它不适用于 3rd 方应用程序开发人员.

SystemTriggerType.SmsReceived is only available to 1st party applications. It's not available to 3rd party application developers.

很抱歉我们没有初步文件来澄清这一点.希望通用应用程序(Windows 运行时)的 SDK 文档的最终版本能够澄清这一点.

I'm sorry for us not having the preliminary documentation clarify this. Hopefully the final version of the SDK documentation for Universal Apps (Windows Runtime) will clarify this.

这篇关于后台任务 SystemTriggerType.SmsReceived 不会触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-14 14:23