N
Novu2w ago
Gaia

FCM webPush overrides not working

Hi! I'm using novu/node v2.0.1 on my NestJS project and I'm trying to set overrides for webPush, but the typing seems wrong. The docs suggest this:
overrides: {
fcm: {
webPush: {
fcmOptions: {
link: "/foo",
},
},
},
},
overrides: {
fcm: {
webPush: {
fcmOptions: {
link: "/foo",
},
},
},
},
But the novu/node package says that there is no property webPush in the type:
export type ITriggerOverrideFCM = {
type?: 'notification' | 'data';
tag?: string;
body?: string;
icon?: string;
badge?: string;
color?: string;
sound?: string;
title?: string;
bodyLocKey?: string;
bodyLocArgs?: string;
clickAction?: string;
titleLocKey?: string;
titleLocArgs?: string;
data?: Record<string, unknown>;
};
export type ITriggerOverrideFCM = {
type?: 'notification' | 'data';
tag?: string;
body?: string;
icon?: string;
badge?: string;
color?: string;
sound?: string;
title?: string;
bodyLocKey?: string;
bodyLocArgs?: string;
clickAction?: string;
titleLocKey?: string;
titleLocArgs?: string;
data?: Record<string, unknown>;
};
How can I make it work? I need to pass an override for the push notification icon and also for the redirect link. (PS: For the push icon I also tried badge and icon properties as per ITriggerOverrideFCM type but it didn't work) Best Regards, Gaia
1 Reply
Pawan Jain
Pawan Jain7d ago
Hey Gaia We have recieved other request for overrides issue. We will investigate and update in this thread
Want results from more Discord servers?
Add your server