lkorth / php-gcm

An easy to use gcm library for PHP
Apache License 2.0
180 stars 45 forks source link

Add support for Cloud Connection Server (upstream XMPP messaging) #3

Open smithgce2012 opened 10 years ago

smithgce2012 commented 10 years ago

Hey friend I think the server code is working with the http for new ccs XMPP is used have you any PHP library for that?

lkorth commented 10 years ago

I'm not quite sure what you're saying. The Java code this is based on has not changed since this was written.

smithgce2012 commented 10 years ago

I have searched and find that currently we are using http using https://android.googleapis.com/gcm/send And now ccs (Xmpp) introduced so GCM Cloud Connection Server (CCS) is an XMPP endpoint, running on http://gcm.googleapis.com port 5235. Are you know any PHP library that works on the server code for new Google cloud messaging

lkorth commented 10 years ago

Cloud Connection Server is still in the testing phase and not available to all users, but adding PHP support for it to this library should not be too difficult. xmpphp allows you to interact with XMPP in PHP similar to Smack in Java. There is a sample implementation in the Android GCM docs for Java that should provide a starting point to port to PHP.

At this time I don't have a plan to write the support for CCS, but if you would like to take a shot and submit a pull request I would be willing to help out with any problems and then merge it.

smithgce2012 commented 10 years ago

Thanks for the help can you please code the same using xmphp lib?

lkorth commented 10 years ago

@smithgce2012 please see my previous comment. I don't plan on writing the CCS support soon, if ever, but pull requests, even partial implementations, are welcome.