Hi guys,
I'm trying to send more data such as title or anything custom but it's seems like it's not included in the payload. (In-app notifixations)
payload: {
message: `You got a new follower ${myUsername}`,
redirect: `/users/${myUsername}`,
...custom_data
},
const data = {
to,
payload,
};
await client.trigger(notification.workflowId, data);
When fetching the notifications with useNotifications I only get message and redirect.
And if I add something in the Editor it's concatenated in message.
Also when adding Avatar the notification returns avatar: undefined.
How do I add more custom data?
I'm using:
"@novu/node": "2.0.5"
"@novu/react": "2.6.2"
Thanks in advance!