immobiliare / ApnsPHP

ApnsPHP: Apple Push Notification & Feedback Provider
BSD 3-Clause "New" or "Revised" License
1.44k stars 452 forks source link

Fixed "Unable to connect"-Error #112

Open Sebiworld opened 8 years ago

Sebiworld commented 8 years ago

Push notifications could not be sent from server, "Unable to connect to 'tls://gateway.sandbox.push.apple.com:2195":(0)

svenluijten commented 5 years ago

Heyo. We're also running into this issue, but we're actually not sure what's causing it. Do you (still) have some insight about why this might be happening?

Sebiworld commented 5 years ago

Oh. This was a long time ago. All I can say is, that we used the library with the two commented lines of my pull request since then. We have multiple servers that send push notifications with the library. But I cannot explain whats the reason for the error behind it. I think I can remember that setting $this->_sRootCertificationAuthorityFile which you can get here didn't work for us.

Let me know if the fix still solves the issue - maybe @duccio would merge this request or make it configurable?

svenluijten commented 5 years ago

This fix does appear to resolve the issue we were having, the errors about connecting to Apple's push platform don't appear in the logs and the notifications seem to be sent like normally now. Thanks!