To detect invalid tokens, how often should I check the feedback service?
I have implemented a broadcasting system using the APNS service. I open a connection, send all the APNS messages, and disconnect. I then open a feedback connection right after the broadcast completes, and read any invalid tokens.
I do get invalid tokens on the feedback connection. However, often my broadcast will only partially succeed (some devices receive and others do not), and when I remove all but the known-good tokens, my test devices consistently receive the message.
I assume that means Apple is stopping the broadcast after it receives the first few invalid tokens.
So am I not listening on the Feedback properly?