Azure Notification Hub测试使用标记

时间:2017-04-11 13:21:21

标签: visual-studio azure push-notification azure-notificationhub azure-management-portal

Visual Studio和Azure管理门户都具有发送测试推送通知的功能。

Azure management portal

Visual studio

当我做广播时,一切正常。但是当我尝试通过标签发送它时,没有任何反应。

我尝试通过.NET对象发送带有特定标记的消息,它也可以正常工作,标记列表和标记表达式都按预期工作。

string tagsExpr = "mytag";
NotificationHubClient hub = NotificationHubClient.CreateClientFromConnectionString(notificationHubConnection, notificationHubName);
hub.SendTemplateNotificationAsync(templateParams, tagsExpr);

该字段中是否有某些特定格式的标签?我找不到任何相关的信息。

1 个答案:

答案 0 :(得分:0)

在您的第一个屏幕截图中,我们发现您在Azure门户中向Android平台发送测试通知,您说没有设备收到通知。请check all registrations and view the tags they are registered for确保mytag的GCM原生注册位于注册列表中。

enter image description here