title: Azure Notification Hub Registered Device list
body: <p>I am following <a href="http://azure.microsoft.com/en-us/documentation/articles/notification-hubs-ios-aspnet-register-user-push-notifications/" rel="noreferrer">This Post</a> 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.</p>
  
  <p>Below is the screen shot of my azure portal. Which shows there was a request for registration.</p>
  
  <p>But when i try to get the details of the registered devices using the following code it is always 0. </p>
  
  <pre><code>var registrationsCount = await hub.GetAllRegistrationsAsync(Int32.MaxValue);
  return registrationsCount.Count().ToString();
  </code></pre>
  
  <p>Now i have few questions :</p>
  
  <p>1 ) how can i explore the registered device details ?</p>
  
  <p>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. </p>
  
  <pre><code> var payload = string.Format(toastTemplate, message);
  
   hub.SendAppleNativeNotificationAsync(payload, "worldnews");
  </code></pre>
  
  <p>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 ?</p>
  
  <p><img src="https://i.stack.imgur.com/PYu0O.png" alt="enter image description here"></p>