diff --git a/index.js b/index.js index 0ce3a4b..5062428 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ app.post("/send-notification", async (req, res) => { try { - const { token, title, body, logo, MediaType, TargetScreen } = req.body; + const { token, title, body, logo, MediaType, TargetScreen,projectCode,empCode } = req.body; let message = {}; @@ -33,6 +33,8 @@ app.post("/send-notification", async (req, res) => { body: body, temp_source: "text", route: TargetScreen, + projectCode: projectCode, + empCode: empCode, }, token: token, }; @@ -52,6 +54,8 @@ app.post("/send-notification", async (req, res) => { body: body, temp_source: "image", route: TargetScreen, + projectCode: projectCode, + empCode: empCode, }, android: { notification: {