guness / node-xcs

NodeJS implementation of Google's XMPP Connection Server
BSD 2-Clause "Simplified" License
38 stars 23 forks source link

Can not receive message #12

Closed sam-xia-locm closed 4 years ago

sam-xia-locm commented 7 years ago

I would like to send message from device to the app server.

1) I run the following command to send a message to Firebase and it is successful with a valid message id: curl -X POST --header "Authorization: key=" --header "Content-Type: application/json" ht-d "{\"to\":\"/topics/foo-bar\",\"notification\":{\"body\": \"HEY YO\"}}"

{"message_id":5634438218616813911}

2) But when I run the node code in server with the right configuration:

xcs.on('message', function(messageId, from, data, category) { console.log('received message', data); });

There is no message in the console.

Please advise what I am missing.

guness commented 7 years ago

can you retry now?

mike-aungsan commented 7 years ago

@guness I am having the same issue. @sam-xia-locm Any tip?

guness commented 4 years ago

version was released. should be good now, please try new version and raise if you see problem.