© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
NovuN
Novu•3y ago•
4 replies
dmgarland

Adding a 'link' option to web push via FCM

I'm using Firebase (FCM) provider to send push notifications to web browsers via Novu. I'm trying to set the
link
link
option so that clicking the notification takes the user back to the website.

I can get push notifications, title, body and images are working: but I can't seem to set the link property as per the interface here:

https://firebase.google.com/docs/reference/admin/node/firebase-admin.messaging.webpushconfig

Looking at the docs / code, I expect that I should be able to send a payload like

curl --location --request POST 'https://url.to.our.selfhosted.novu' \
     --header 'Authorization: ApiKey KEY' \
     --header 'Content-Type: application/json' \
     --data-raw '{
         "name": "workflow-name",
         "to": {
            ...
         },
         "overrides": {
           "fcm": {
             "webPush": {
               "fcmOptions": {
                 "link": "https://www.novu.co"
               }
             }
           }
         }
       }'
curl --location --request POST 'https://url.to.our.selfhosted.novu' \
     --header 'Authorization: ApiKey KEY' \
     --header 'Content-Type: application/json' \
     --data-raw '{
         "name": "workflow-name",
         "to": {
            ...
         },
         "overrides": {
           "fcm": {
             "webPush": {
               "fcmOptions": {
                 "link": "https://www.novu.co"
               }
             }
           }
         }
       }'


I can see that other
webPush
webPush
settings I'm setting such as
imageUrl
imageUrl
work - but I can't seem to get the link value to come through. I've tried
fcmOptions
fcmOptions
and
fcm_options
fcm_options
but neither seems to work. Does anyone have any experience getting this value across to the service worker?
Firebase
WebpushConfig interface  |  Firebase Admin SDK
Novu banner
NovuJoin
Open Source Notification Infrastructure Community by Novu
4,169Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

FCM web push duplicate
NovuNNovu / 💬│support
2y ago
Duplicate FCM web push notifications
NovuNNovu / 💬│support
2y ago
Using Novu to send push notifications via FCM
NovuNNovu / 💬│support
2y ago