richsage / RMSPushNotificationsBundle

NOT MAINTAINED! ⛔️ Push notifications/messages for mobile devices. Supports iOS, Android (C2DM, GCM), Blackberry and Windows Mobile (toast only). A Symfony2 bundle.
MIT License
321 stars 152 forks source link

Close apn stream in case of shutdown error #101

Closed tgallice closed 9 years ago

tgallice commented 9 years ago

According to the documentation : https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW4

When the apns return a shutdown status code, the stream should be closed and create a new one.

richsage commented 9 years ago

Thanks - this is great. Just one comment and then I'm happy to merge :-)

tgallice commented 9 years ago

@richsage done :)

richsage commented 9 years ago

Perfect - thanks :-)