abandroid / gcm

Google Cloud Messaging
http://endroid.nl/
MIT License
47 stars 14 forks source link

Allow to use MultiCurl #2

Closed pierrre closed 12 years ago

pierrre commented 12 years ago

We should be able to use MultiCurl https://github.com/kriswallsmith/Buzz/blob/master/lib/Buzz/Client/MultiCurl.php

It allows users to send multiple gcm requests in parallel. Of course, one gcm request already allows to send the same message to multiple "registration ids". But it's limited to 1000 ids, and they all receive the same message.

What do you think?

endroid commented 12 years ago

Good point. I was not aware of the registration ID limit. The code is now updated to chunk the registration ID's and use MultiCurl when the number of registration ID's exceeds the limit of 1000.

pierrre commented 12 years ago

nice! Thank you very much!

acidfilez commented 10 years ago

Got Error on "..Buzz/Client/MultiCurl.php","line":38 "Maximum execution time of 120 seconds exceeded"

Using Laravel 4, Any ideas, incrementing max time just adds time.

Greetings

endroid commented 10 years ago

Hi @acidfilez. Unfortunately I'm unable to reproduce the issue. Did you take a look at https://github.com/richsage/RMSPushNotificationsBundle/issues/31? Maybe this gives an answer to your issue.

At least I added the setVerifyPeer(false) method as described there and tagged it as v1.2.3. Can you check if this solves your problem?