diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-05-25 11:32:47 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-05-25 11:32:47 +0200 |
commit | 3fbee1386df76a4fa0d7a4d0a14c8a683ef72322 (patch) | |
tree | aedbaa80dca49769533e6cd2c622ca2b2c669609 | |
parent | 096270b1d0ec09f0dbcfe8653957154a07a90de4 (diff) |
server: Firebase: only send a data message
-rwxr-xr-x | firebase-io/firebase-io.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/firebase-io/firebase-io.js b/firebase-io/firebase-io.js index e4e7305..cc5eaca 100755 --- a/firebase-io/firebase-io.js +++ b/firebase-io/firebase-io.js @@ -74,16 +74,13 @@ function processMessage(type,fields){ const user=fields.get("user"); const to_user=fields.get("to_user"); const room=fields.get("room"); + const message=fields.get("message"); const token=fields.get("token"); const payload={ - notification: { - title: user+" ("+room+")", - body: fields.get("message"), - tag: room, - }, data: { user: user, room: room, + message: message, } }; firebase.messaging().sendToDevice(token,payload) |