Last Updated: February 25, 2016
· michaelarchbold

Google Cloud Messaging using PHP

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


Say Thanks

4 Responses
Add your response

over 1 year ago ·

@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 ·

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

over 1 year ago ·

@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 ·