changes
This commit is contained in:
@@ -17,7 +17,7 @@ app.post("/send-notification", async (req, res) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
const { token, title, body, logo, MediaType, TargetScreen } = req.body;
|
const { token, title, body, logo, MediaType, TargetScreen,projectCode,empCode } = req.body;
|
||||||
|
|
||||||
|
|
||||||
let message = {};
|
let message = {};
|
||||||
@@ -33,6 +33,8 @@ app.post("/send-notification", async (req, res) => {
|
|||||||
body: body,
|
body: body,
|
||||||
temp_source: "text",
|
temp_source: "text",
|
||||||
route: TargetScreen,
|
route: TargetScreen,
|
||||||
|
projectCode: projectCode,
|
||||||
|
empCode: empCode,
|
||||||
},
|
},
|
||||||
token: token,
|
token: token,
|
||||||
};
|
};
|
||||||
@@ -52,6 +54,8 @@ app.post("/send-notification", async (req, res) => {
|
|||||||
body: body,
|
body: body,
|
||||||
temp_source: "image",
|
temp_source: "image",
|
||||||
route: TargetScreen,
|
route: TargetScreen,
|
||||||
|
projectCode: projectCode,
|
||||||
|
empCode: empCode,
|
||||||
},
|
},
|
||||||
android: {
|
android: {
|
||||||
notification: {
|
notification: {
|
||||||
|
|||||||
Reference in New Issue
Block a user