richsage/RMSPushNotificationsBundle — pull request #14 by mac-cain13 (2012-10-24 21:38:17+00:00)
Title: Connect once to APNS and send all pushmessages over that connection

This fixes issue #13.

- Added some methods to manage the streams
- Supports switching from and to sandbox between messages (not of much use now, but it's future proof)
- Reconnects when connection is lost
- No changes in the class interface

- Major performance win. A very simple and not so scientific test when pushing 70 messages to APNS:
Before: 32.9 seconds
After: 1.1 seconds