简体   繁体   English

如何在Windows Phone 8.1 Universal App中订阅特定主题的原始通知

[英]How to subscribe for raw notifications for specific topic in windows phone 8.1 universal app

I found a lot of code examples on how to register for raw notifications. 我发现了很多有关如何注册原始通知的代码示例。 But I can't find how to restrict to a specific Topic. 但是我找不到如何限制到特定主题。 Have I missed something? 我错过了什么吗?

That's my code so far: 到目前为止,这是我的代码:

var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();

var taskBuilder = new BackgroundTaskBuilder();
var trigger = new PushNotificationTrigger();
taskBuilder.SetTrigger(trigger);
taskBuilder.TaskEntryPoint = SampleTaskEntryPoint;
taskBuilder.Name = SampleTaskName;
taskBuilder.Register();

see this channel 9 video for the details of windows-phone-8.1 notification. 有关Windows-phone-8.1通知的详细信息,请参见此第9频道视频。 it is in quite details. 这是非常详细的。 push notification part starts from 24:25 推送通知部分从24:25开始

Tiles, Notifications, and Action Center 磁贴,通知和操作中心

Hope this helps. 希望这可以帮助。

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

相关问题 Windows Phone 8.1到Universal App - Windows phone 8.1 to Universal App 如何在Windows Phone 8.1通用商店应用中正确导航后退堆栈 - How to properly navigate backstack in Windows Phone 8.1 universal store app 如何在Windows Phone 8.1通用应用程序中更改插入符号的颜色 - How to change caret color in windows phone 8.1 universal app 如何防止Windows(手机)8.1通用应用程序中的锁屏? - How to prevent lockscreen in a Windows (Phone) 8.1 Universal App? 交互式MapIcon,Windows Phone 8.1通用应用程序 - Interactive MapIcon, Windows Phone 8.1 Universal App 适用于 Windows Phone 8.1 的绘图控件(通用应用) - Drawing Control for Windows Phone 8.1 (universal app) Windows Phone 8.1通用应用中的LongListMultiSelector等效项 - LongListMultiSelector equivalent in windows phone 8.1 universal app Windows Phone 8.1通用应用程序:清除cookie - windows phone 8.1 universal app : clear cookies 将Windows Phone 8.1 App迁移到Universal 8.1 App的最佳方法 - Best way of migrating Windows Phone 8.1 App to Universal 8.1 App 如何在通用应用程序/ Windows 8.1和Windows Phone的所有页面上的App.xaml.cs上绑定属性? - How to bind a property on App.xaml.cs on all pages of universal app / Windows 8.1 and Windows Phone?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM