I've gotten chrome.gcm.onMessage.addListener() to work correctly with a curl command.
I don't understand what chrome.gcm.send() does. The documentation says that the message should contain the following properties: messageId, data, timeToLive, and destinationId.
The destinationId is made up of the project number found in the Developers Console appended by "@
gcm.googleapis.com".
I guess this sends it to the server but where does it go from there? It doesn't specify the registration ID so the server wouldn't know which client to forward it to.
My understanding of gcm.send() is that it sends a message to a Chrome client. Is this wrong?