Note that there are some explanatory texts on larger screens.

plurals
  1. POcan't receive data from node-gcm?
    primarykey
    data
    text
    <p>i am new in <code>node-gcm</code>,, I attempting send data to android use <code>node-gcm</code>...i don't know where i start build the project..i following this tutorial <a href="https://github.com/ToothlessGear/node-gcm" rel="nofollow">https://github.com/ToothlessGear/node-gcm</a> but still confused...</p> <p>here my code :</p> <pre><code>var gcm = require('node-gcm'); // create a message with default values var message = new gcm.Message(); // or with object values var message = new gcm.Message({ collapseKey: 'demo', delayWhileIdle: true, timeToLive: 3, data: { key1: 'message1' } }); var sender = new gcm.Sender('myApi'); var registrationIds = []; // Optional // add new key-value in data object message.addDataWithKeyValue('key1','message1'); // or add a data object message.addDataWithObject({ key1: 'message1', }); // or with backwards compability of previous versions message.addData('key1','testdarinodegcm'); message.collapseKey = 'demo'; message.delayWhileIdle = true; message.timeToLive = 3; // END Optional // At least one required registrationIds.push('myToken'); //registrationIds.push('regId2'); /** * Parameters: message-literal, registrationIds-array, No. of retries, callback-function */ sender.send(message, registrationIds, 4, function (err, result) { console.log(result); }); </code></pre> <p>i get no error found in console...instead success but i can't receive data in android device...here message from console...</p> <pre><code>{"multicast_id":7521418564872032002,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1367890688015497%f11e78b0f9fd7ecd"}]} </code></pre> <p>why i can't receive data from <code>node-gcm</code> in android device?maybe my code not complete?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload