diff options
-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) |