Moved firebase messaging notification handling to messaging generation.
This commit is contained in:
@@ -75,9 +75,9 @@ exports.receive = (req, res) => {
|
||||
const uniqueTokens = [...new Set(allTokens)];
|
||||
var message = {
|
||||
notification: {
|
||||
title: `New SMS From ${phone(req.body.From)[0]}`,
|
||||
title: `SMS - ${phone(req.body.From)[0]}`,
|
||||
body: req.body.Body,
|
||||
//click_action: "TEST CLICK ACTION",
|
||||
click_action: "TEST CLICK ACTION",
|
||||
},
|
||||
data: {
|
||||
jobid: "1234",
|
||||
|
||||
Reference in New Issue
Block a user