[英]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.