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

MultiCurl problem #31

Closed mrzepinski closed 10 years ago

mrzepinski commented 11 years ago

I think that MultiCurl doesn't work. I am using this Bundle under Windows with php_curl.dll extenstion enabled.

When I run the code to send Android message, I get 25% CPU usage (Apache) and nothing happens - connection is terminated. When I use Curl instead of MultiCurl I get SSL certificate problem, verify that the CA cert is OK. Details:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed and when I use my own implementation instead of Buzz everything is working ok.

mrzepinski commented 11 years ago

I've made a little change here: https://github.com/richsage/RMSPushNotificationsBundle/blob/master/Service/OS/AndroidGCMNotification.php#L57

like this:

$curl = new Curl();
$curl->setVerifyPeer(false);
$this->browser = new Browser($curl);

and here: https://github.com/richsage/RMSPushNotificationsBundle/blob/master/Service/OS/AndroidGCMNotification.php#L94 I had to remove this line of code to work properly.

Now everything is working properly.

Haehnchen commented 11 years ago

i hade the same probleme see #29. its a common windows error. with the help of this commit we have more possibilities.

reneszabo commented 10 years ago

@mrzepinski Thx !

DarwinOnLine commented 10 years ago

Hello, I can fix my problem with your code... Perhaps a commit ?

richsage commented 10 years ago

@DarwinOnLine can you try the changes in PR #54 that I just opened? Essentially just adding a new configuration value as part of your GCM config.

DarwinOnLine commented 10 years ago

Sorry richsage, bad timing for me :( But I see you did it well, thanks !