apns bad device token in ionic
<p>I've developed an app with Ionic for Android and iOS devices.</p>

<p>I'm having trouble with the notifications for iOS. In development everything works fine, but in production, when I send the notification, it gets back to me with this error: `</p>

<blockquote>
  <p>APNS_BAD_DEVICE_TOKEN</p>
</blockquote>

<p>The certificates that I've uploaded on ionic.io are the ones generated by distribution, I'm positive about that. APNS certificate such as APP Store one and Provisioning Profile as well.</p>

<p>If I download the app from the Apple Store i get the error I wrote before, and if I create it from Xcode, it works perfectly. Plus it generates two different device tokens (one with the App Store and another one from Xcode).</p>

<p>I've deleted and created the certificates many times, and everything is still working like that. I'm pretty lost here, can anyone help me out?</p>