-2

How can I send push notification to multiple Android devices from PHP?

I have working code for sending it to a single device, but not for multiple devices.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
  • you need to go thru GCM http://developer.android.com/google/gcm/index.html – Padma Kumar Jan 18 '13 at 11:48
  • This is a duplicate to http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging – Audrius Jan 18 '13 at 11:51
  • Its very vast so please can any body provide me direct link for the example? – Anshita Patel Jan 18 '13 at 11:53
  • @AnshitaPatel It is the very first [answer](http://stackoverflow.com/a/11253231/181714) in the question link I provided. It even has a code example that you could adapt to your specific needs. – Audrius Jan 18 '13 at 11:55

1 Answers1

2

As per Google’s documentation,

Google Cloud Messaging for Android (GCM) is a service that helps developers send data from servers to their Android applications on Android devices

Using this service you can send data to your application whenever new data is available instead of making requests to server in timely fashion.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
Sahil Mahajan Mj
  • 12,525
  • 8
  • 53
  • 98