Not reciving notification while using userTags in notification hub

GJ 1 Reputation point
2021-02-08T05:16:06.537+00:00

Registered a device in hub with user tags and I found the device is successfully registered in hub with tags using GetRegistrationsByChannelAsync().While sending the message, the azure notification hub metrics shows the incoming message count but outgoing messages is as zero.

I tried to send notification to an android device using tags but it is not receiving in the device.
If I'm sending the message without tags by removing the tags from hub by reregistering the device(Broadcasted the messages) then device is getting notifications successfully .

The registration and message sending is completely handled from Web API.

Do we need to do any other steps while using User tag feature in the hub.

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
295 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 15,786 Reputation points Microsoft Employee
    2021-02-09T05:12:23.477+00:00

    @GJ , I have seen this behavior reported by other customers in the past when they are using invalid tags, such as having a space in the tag name. Can you please check to see if this is the issue?

    A tag can be any string, up to 120 characters, containing alphanumeric and the following non-alphanumeric characters: '_', '@', '#', '.', ':', '-'. Note that spaces are not supported.

    Please let us know if this resolves the matter or if you still need assistance.