Reputation: 2246
I followed Google GCM Google Cloud Messaging for Android. But It runs notification to all the devices instead of specific device.How can I send notification to particular device.
I believe registration ID is needed for me. But definition of registration id is :
An ID issued by the GCM servers to the Android application that allows it to receive
messages. Once the Android application has the registration ID, it sends it to the
3rd-party application server, which uses it to identify each device that has registered
to receive messages for a given Android application. In other words, a registration ID
is tied to a particular Android application running on a particular device.
Here what is the meaning of 3rd party Application.
Please guide me on this. Any help will be appreciated.
Upvotes: 2
Views: 4773
Reputation: 1006654
But It runs notification to all the devices instead of specific device
Since GCM does not support sending a notification to all devices, this is not possible. GCM supports sending a message to a specific device, or to all devices registered to same user (if you use the opt-in user notifications feature).
Here what is the meaning of 3rd party Application.
This is defined on the very Web page that you linked to. You can tell this by reading that page, and seeing:
3rd-party Application Server: An application server that you write as part of implementing GCM. The 3rd-party application server sends data to an Android application on the device via the GCM connection server.
Upvotes: 2