I am following This Post to work with the azure notification center. What I'm trying to do is create a web api that registers devices using the Azure notification hub. When I submit a device registration request, as shown in the article, it enters the azure notification hub.
Below is a screenshot of my azure portal. Which indicates that there was a request for registration.
But when I try to get the details of registered devices using the following code, it is always 0.
var registrationsCount = await hub.GetAllRegistrationsAsync(Int32.MaxValue); return registrationsCount.Count().ToString();
Now I have a few questions:
1) How can I find out the registered device data?
2) How can I send a test notification to ios devices from the back. Below is the code that I use to send test notifications.
var payload = string.Format(toastTemplate, message); hub.SendAppleNativeNotificationAsync(payload, "worldnews");
3) If I use the web api as the back end, do I need to configure the details of the ios app in the notification house? Upload the certificate and other data to the azure portal?

ios asp.net-web-api azure azure-notificationhub
Sachin trivedi
source share