I have developed a website using php and mysql.I want to send notification to Android device for every post which is uploaded to my website.
Is it possible to send notification using GCM Server? If yes, then how can I send notification to all devices which have the Android app installed?
First of all follow Implementing GCM Client and implement the gcm client in your android app.
For GCM Server in php you can implement it in the following way. Edit your code according to your need like code it for when publishing the post. For more about implementing the GCM Server go to Implementing GCM Server
There is also a good post Android Push Notifications for beginners.
There is some changes into the code in comment the define(api key line) and put / paste it as my code in php. its working fine comment this :
comment or replace this code line :
I have decided to post answer for my own question
Now Google introduced FCM