How to test Apple Push Notifications Feedback Service?
<p>What I did as a test is following:</p>

<ul>
<li><p>I made example app where I enabled push notifications and implemented mechanism for handling them.</p></li>
<li><p>I was testing sending of silent push notifications to my app with <code>curl</code> and that works pretty well. I am testing that with:</p>

<p>curl -v -d '{"aps":{"content-available":1}}' --cert "/Users/me/Desktop/mycert.pem":"" -H "apns-topic:com.domain.name" --http2 <a href="https://api.development.push.apple.com/3/device/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" rel="noreferrer">https://api.development.push.apple.com/3/device/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</a></p></li>
<li><p>As an answer from Apple, I am always seeing following:</p>

<blockquote>
  <p>&lt; HTTP/2.0 200</p>
  
  <p>&lt; apns-id:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX</p>
</blockquote>

<p>Which is fine and as expected, according to <code>Table 6-4</code> from the official docs: <a href="https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/APNsProviderAPI.html" rel="noreferrer">https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/APNsProviderAPI.html</a></p></li>
<li><p>Now I delete the app from my device and I retry the same request kinda hoping that I will start getting status code <code>410</code> and info that <code>The device token is no longer active for the topic</code>. How ever, that doesn't happen and I am always getting <code>200</code> status code like everything's fine and that the push token is still available.</p></li>
</ul>

<p>1 - 1.5 hours after deletion, I am still getting <code>200</code> as an answer.</p>

<p>Do you maybe know how often does Apple refresh push tokens list and when I can expect to eventually start getting <code>410</code>? And also - is <code>410</code> status (and <code>Instant Feedback</code> in general) testable at all while testing the app outside of production environment?</p>

<p>Thanks in advance for any kind of answer.</p>

<p>Cheers</p>