FR: Support webpush.fcm_options.link
for opening another domain.
#5822
Labels
webpush.fcm_options.link
for opening another domain.
#5822
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
According to the code below, when a user clicks the notification from FCM, it can only open the same domain.
firebase-js-sdk/packages/messaging/src/listeners/sw-listeners.ts
Lines 130 to 136 in cdada6c
It would be fantastic if we could open a URL from another domain.
For the time being, I've devised a workaround: directly above the call to
firebase.messaging(),
insert your ownnotificationclick
:It is necessary to install an event listener sooner rather than later since it will be halted by the following line:
firebase-js-sdk/packages/messaging/src/listeners/sw-listeners.ts
Lines 121 to 122 in cdada6c
The text was updated successfully, but these errors were encountered: