Android Push Notification Using PHP and Google Cloud Messaging

By | November 26, 2015

Sending push notification to android device is very important part of an App. Most of the time we use it for sending some information as well us for promotion. I am going to tell you how you can use PHP script to send Android Push Notification using Google Cloud Messaging. Script is so simple and you can use it easily in your project.

Things we need

  • API access key from Google API’s Console
  • Device ID

I assume that you are having both of the things  so now we will move to next part that is our PHP Script for sending the push notification.

PHP Script for Sending Push Notification


Just replace your credentials with script and run it. It will surely send the push notification to your android app. Thank you for reading PHP script for sending android push notification using Google Cloud Messaging. If you have any advice or comment please write it below.

Leave a Reply

Your email address will not be published. Required fields are marked *