Azure Notification Hub test send with tags

4.8k Views Asked by At

Both Visual Studio and Azure Management Portal have functionality to send test push notifications.

Azure management portal

Visual studio

When I do broadcast, everything works fine. But when I try to send it by tag, nothing happens.

I tried to send message with specific tag via .NET object and it also works just fine, both tags list and tag expressions work as expected.

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

Is there some specific format of tags in that fields? I cannot find any information about that.

1

There are 1 best solutions below

1
Fei Han On

In your first screenshot, we could find you send a test notification to Android platform in Azure portal, you said no devices receive the notification. Please check all registrations and view the tags they are registered for to make sure the GCM native registrations with mytag are in Registrations list.

enter image description here