Can someone please tell me what i'm doing wrong here, the notification is said to be sent but i'm always getting a failure count, which means non of the device tokens actually gets the push notification. Here's my code
const payload = {
notification: {
title: `${main_title}`,
body: `${stripped_body}`,
},
data: {
type: "article",
appBar_title: appBar_title !== undefined ? appBar_title : "",
approved: approved !== undefined ? approved : "",
article_body: article_body !== undefined ? article_body : "",
body_image: body_image !== undefined ? body_image : "",
date_created: date_created !== undefined ? date_created : "",
featured_image: featured_image !== undefined ? featured_image : "",
gavels: gavels !== undefined ? gavels : "",
article_id: id !== undefined ? id : "",
likes: likes !== undefined ? likes : "",
main_title: main_title !== undefined ? main_title : "",
views: views !== undefined ? views : "",
broadcast: broadcast !== undefined ? broadcast : "",
},
};
await messaging
.sendToDevice(deviceToken, payload)
.then((response) => {
console.log("Successfully sent message to::", response.successCount);
})
.catch((error) => {
console.log("Error sending message:", error);
});
the deviceToken is an array of device token as such;

I'm totally lost for options on what else to do