windowspush-notificationwindows-phone-8.1azure-notificationhubwns

Send push notifications using Registration ID through Azure Notification Hubs


I am trying to use Azure Notification Hubs to send push notifications to a client. I read this article which uses tags to identify each user.

https://azure.microsoft.com/en-us/documentation/articles/notification-hubs-aspnet-backend-windows-dotnet-notify-users/

It does the work, but the number of tags is limited. I was thinking to store and use the Registration ID that the Hub returns.

Is there any way to send notifications using this ID?

Another way would be using the Channel.URI that is returned by WNS. Can this be implemented somehow?


Solution

  • Actually NH limits only number of tags per single registration but per hub you may have as many registrations as you need and each registration may have unique tag which you can use to route the notifications.

    Also there is new Installation API for Notification Hubs which I believe fits better for you. It is still not well-documented but well-done and ready to use. Here you can find short description of how to use that API. Readme is about Java but .NET SDK has pretty much the same capabilities (in the end both call same REST API).