Per a Google Cloud Messaging For Android (GCM) Simple Tutorial, I have created an android application for push notification using GCM services. Now I successfully get the notification in a device or emulator but problem is that I am getting only in one device (device used for testing purpose), not in other application installed devices.
final String regId = GCMRegistrar.getRegistrationId(this);
Using this code I am getting the registration id, the output I have copied from logcat window and send manually to my .Net developer. He copied that id in server side and thus for that device I am getting the notification. Please help me to send that registration id dynamically to the server side(Asp.net server). So that he can store those ids in database and pass array of registration ids to Google GCM Server. I think then only we can get notification for all devices(installed application). Because now in the server side, we are passing the data to GCM server in this way:
string postData = "collapse_key=score_update&time_to_live=108&delay_while_idle=1&data.message=" + value + "&data.time=" + System.DateTime.Now.ToString() + "®istration_id=" + deviceIDs + "";
Please correct me if my procedure is going wrong somewhere.