I'm sending Apple Push Notifications.
The first 3 notifications works great. Then it stops to work. It happened the same yesterday and today. This is the error message I get:
“Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Connection refused) in /home/content/14/4875914/html/code/push/apns.php on line 15 Failed to connect 111 Connection refused ”
I've contacted my provider, and they told me the port 2195 is open.
How do I know if APN or my server is refusing the connection ?
How do I solve this ? As I wrote before, my code works in the beginning, so I assume certificates, code etc.. is correct.