|
|
@ -2421,7 +2421,7 @@ const sendNotification = async (customerId, fcmIds, title, body) => {
|
|
|
|
const response = await admin.messaging().send({
|
|
|
|
const response = await admin.messaging().send({
|
|
|
|
notification: { title, body },
|
|
|
|
notification: { title, body },
|
|
|
|
token,
|
|
|
|
token,
|
|
|
|
data: { target: "tank_levels" },
|
|
|
|
data: { target: "/tank_levels" },
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
console.log(`Notification sent successfully to token: ${token}`, response);
|
|
|
|
console.log(`Notification sent successfully to token: ${token}`, response);
|
|
|
|