apns4ex
apns4ex copied to clipboard
Apns did not working after a few of hours.
I run simple push notification module with pure apns push function on Production and after a few of hours it's can not deliver any message to device and console log still look good (without any error log in console - debug level). And I restart the apns app with command Application.stop(:apns); Application.start(:apns), it's back. I don't know what problems.
It is hard to troubleshoot it like that. Anyone else experiencing this issue? It is possible that connections died and maybe were not properly reopened. They do re-connect after some time (configurable). Is your config setup that way?
I see the exact same problem with a very simple application. The code can be found here: https://github.com/cicakhq/potato_apns_provider
The code is so simple that I simply cannot think of anything to try. My test system is running on Google Compute Engine.