diff options
-rwxr-xr-x | firebase-io/firebase-io.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firebase-io/firebase-io.js b/firebase-io/firebase-io.js index 8a94076..bfcca0f 100755 --- a/firebase-io/firebase-io.js +++ b/firebase-io/firebase-io.js @@ -71,11 +71,13 @@ function processMessage(type,fields){ switch(type){ case "message": const user=fields.get("user"); + const room=fields.get("room"); const token=fields.get("token"); const payload={ notification: { - title: user+" ("+fields.get("room")+")", + title: user+" ("+room+")", body: fields.get("message"), + tag: room, } }; firebase.messaging().sendToDevice(token,payload) |