I did not understand what should be in the variable registrationId
registrationId=?
Result result = sender.send(message, registrationId, 5);
Can someone explain to me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Google Doc says : “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. “
You can think
registrationIdas adevice tokenwhich is specific to the device, a unique identification for the device. This unique identification token orregistrationIdwill help you to sendmessageto the specified device only.When you are registering
GCMservice from theandroid app, at that time registration process returns this unique id which is known as a `registrationId.