© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
NovuN
Novu•16mo ago•
7 replies
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
Novu banner
NovuJoin
Open Source Notification Infrastructure Community by Novu
4,169Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

FCM overrides - @novu/node
NovuNNovu / 💬│support
3y ago
SendGrid overrides not working
NovuNNovu / 💬│support
3y ago
FCM notifications not working in production environment
NovuNNovu / 💬│support
6mo ago