title: APNS Bad Channel Error on Notification Hub Test Push Send
body: <p>I am developing a cross-platform application with <code>xamarin forms</code> and I'm trying to run notifications on the various devices through the <code>notification hub</code>.</p>
  
  <p>I encounter a problem when I try to send a test notification for the iphone.</p>
  
  <p>The device can register the token, received by apns, on the notification hub even if only after the '&lt;' and '>' and spaces are deleted, otherwise, the notification hub returns the error "one or more characters in device token is not a hexadecimal digit".</p>
  
  <p>However, when I try to send a first test notification, Notification Hub returns: </p>
  
  <blockquote>
    <p>"The test message has been sent. Outcome: {1 success, 0 unsuccessful}"</p>
  </blockquote>
  
  <p>but notification never reaches the device. All the test notifications sent subsequently result: </p>
  
  <blockquote>
    <p>"The test message has been sent. Outcome: {0 success, 0 unsuccessful}"</p>
  </blockquote>
  
  <p>In fact, going to see the metrics in the notification hub the next day there are some </p>
  
  <blockquote>
    <p>"APNS bad Channel Error"</p>
  </blockquote>
  
  <p>So what could be the problem? Did anyone have the same problem? And what does "APNS bad channel error" mean?</p>