i2xzjg
Last Updated: February 25, 2016
·
16.18K
· michaelarchbold

Google Cloud Messaging using PHP

I wrote a simple tutorial on how to send a GCM from PHP.

http://labs.distriqt.com/post/1273

Say Thanks
Respond

4 Responses
Add your response

5203
over 1 year ago ·
5219

@dexxtr Very similar, but limits you to one device and only a simple string message? I suppose if thats all you need?

over 1 year ago ·
5608

how can i get registration id... please explain that i'm really struggling wit that

over 1 year ago ·
5609

@kvn_krishna You get the registration ids from your application running on the device. So you'll need to investigate the client side implementation as well as this server side code.

You'll need to setup some communication between your application and your server to send the registration ids to your server.

Here's a tutorial on using our native extensions to retrieve the registration id though not sure this will be applicable to you: http://distriqt.com/post/1627

You're probably best referring to the android developer documentation: http://developer.android.com/google/gcm/gs.html#android-app

over 1 year ago ·