我发现了很多关于如何注册原始通知的代码示例。但我找不到如何限制特定主题。我错过了什么吗?
到目前为止,这是我的代码:
var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
var taskBuilder = new BackgroundTaskBuilder();
var trigger = new PushNotificationTrigger();
taskBuilder.SetTrigger(trigger);
taskBuilder.TaskEntryPoint = SampleTaskEntryPoint;
taskBuilder.Name = SampleTaskName;
taskBuilder.Register();