locked
How to set filter Push Notification through Notification Hub RRS feed

  • Question

  • I'm sending the Toast notification to the application via Push Notification Hub. That application has 500 registered user , BUT I want to send Push Notification only to a specific 10 users. Is there a way to mention a filter condition on the Notification Hub for my App?

    This the code i'm using to send a Notification

     protected void Button1_Click(object sender, EventArgs e)
            {
                var cn = ServiceBusConnectionStringBuilder.CreateUsingSharedAccessSecretWithFullAccess(new Uri("sb://mynamespace.servicebus.windows.net/ "), "FullAccessKey");
                var hubClient = NotificationHubClient.CreateClientFromConnectionString(cn, "myhub");
                hubClient.SendTemplateNotification(new Dictionary<string, string>
                                                {
                                                    {"msg", TextBox1.Text}
                                                });
            }

    hibrise

    Tuesday, August 20, 2013 12:30 PM

Answers