From 3fbee1386df76a4fa0d7a4d0a14c8a683ef72322 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 25 May 2017 11:32:47 +0200 Subject: server: Firebase: only send a data message --- firebase-io/firebase-io.js | 7 ++----- 1 file 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) -- cgit v1.2.3-70-g09d2