Device Registration for messaging in JS (Phonegap)

Hi. I’m having trouble registering devices for backendless messaging. I’m using Phonegap (JS) to create an Android App. Can someone explain to me where and what should I add to my code so when an Android device logs in to my app for the first time it is automatically registered for a specific channel. I have already configured the API keys and I have no problem publishing messages from an android device but the part of the JS API Docs regarding registration is a bit blurry to me.
PS: If it’s necessary to add code to java files please explain for a beginner as I’m not very good in Java.
Thank you in advance!

Hi, Kaloyan!
The Backendless Support Policy does not allow us to provide source code specifically for users projects. But we did our best to make our documentation easy and understandable so you can tailor Backendless services for your needs. Please use Messaging Documentation and Messaging Codegeneration sample to get started:
http://support.backendless.com/public/attachments/dc2c445111d4dfca447c372377453a97.png</img>

Hi Anatolii,I’m not expecting code but rather an advice on this matter. As I said the instructions in the JS DOCs are pretty clear up to this point but I don’t seem to get where an how I should use the GCMSenderID an without it I can only add messages to a channel from a device but the device section of the channel stays empty. The screenshot that you have provided in the DOCs is not helpful for a JS developer or at least not without some additional info behind it so please give me some pointers.

Thank you in advance!

Hi, Kaloyan!

Here are the instructions on setting up Google project and getting GCMSenderID (Google Project Number).
https://backendless.com/documentation/messaging/js/messaging_push_notification_setup_androi.htm