我正在开发一个使用 BLE 与某个项目通信的应用程序,我需要从它接收后台通知。我知道存在GattCharacteristicNotificationTrigger
但我找不到任何方法在 Silverlight 8.1 应用程序中注册后台任务。
Any tip?
注册一个后台任务 http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.applicationmodel.background.ibackgroundtask.aspx很好地解释了在 MSDN 上 http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh977055.aspx.
这是一个简单的例子时间触发 http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.applicationmodel.background.timetrigger.aspx并显示 Toast,步骤如下(适用于 RunTime 和 Silverlight 应用程序):
1. BackgroungTask must be a Windows Runtime Componenet (no matter if your App is Runtime or Silverlight). To add a new one, right click on your Solution in Solution Explorer window in VS, select Add then New project and choose Windows Runtime Component.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)