The documentation says about NotificationHubClient.GetRegistrationsByTagAsync(string tag, int top)
in Azure Push Notifications as below,
top (Int32) : The location where to get the registrations.
But I have no idea what top or location stands for.
An example I found use just 100
but no reason to use it.
Tag expressions enable you to target specific sets of devices, or more specifically registrations, when sending a push notification through Notification Hubs.
Similar to other entities, Notification Hub operations are allowed for three security claims: Listen, Send, and Manage. Notification Hubs accepts SAS tokens generated with shared keys configured directly on the hub. It is not possible to send a notification to more than one namespace.
What is the Notification Hubs SLA? For Basic and Standard Notification Hubs tiers, properly configured applications can send push notifications or perform registration management operations at least 99.9 percent of the time.
Send push notifications to any platform from any back endAzure Notification Hubs provides a highly scalable, cross-platform push notification infrastructure that enables you to either broadcast push notifications to millions of users at once, or tailor notifications to individual users.
Basically it means get at most top records.
So if you have 1000 registrations with tag 'A' then NotificationHubClient.GetRegistrationsByTagAsync("A", 42) will return 42 records.
However, top cannot be more then 100! NotificationHubClient.GetRegistrationsByTagAsync("A", 142) will only return 100 records.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With