I see it too. Looking at the NotificationConnection.Close () method, I found this:
// Sleep here to prevent a race condition // in which a notification can be queued during a workflow // sleeping after its cycle, but if we set the closure to true within 100 ms, // notifications in the queue during this time will not be deleted in turn // exit due to closing = true; // 250 ms should be enough time for the loop to delete any remaining notifications // after we stopped receiving above Thread.Sleep (250);
And in the above loop, I found: Thread.Sleep (500);
Setting the timeout in the close method to 1000 fixed it for me;) - answer to: http://code.google.com/p/apns-sharp/issues/detail? id = 41
theiOSDude
source share