I am following This Post to work with azure notification hub. What i am trying to do is creating the web api that registers the devices with the Azure notification hub. When i send the request for registering the device as shown in the article it hits the azure notification hub.
Below is the screen shot of my azure portal. Which shows there was a request for registration.
But when i try to get the details of the registered devices using the following code it is always 0.
var registrationsCount = await hub.GetAllRegistrationsAsync(Int32.MaxValue);
return registrationsCount.Count().ToString();
Now i have few questions :
1 ) how can i explore the registered device details ?
2 ) How i can i send a test notification to the ios devices from back end. Below is the code that i am using to send test notifications.
var payload = string.Format(toastTemplate, message);
hub.SendAppleNativeNotificationAsync(payload, "worldnews");
3 ) If i am using the web api as back end is it necessary to configure the ios app details in azure notification hub ? i.e uploading the certificate and other details on azure portal ?