-
Notifications
You must be signed in to change notification settings - Fork 938
onMessage payload click_action
and icon
not received because propagateNotificationPayload
#5824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
@rockmandash I assume you are sending through the legacy send API since |
@zwu52 I did not utilize a legacy API, thus my payload is as follows: {
"message": {
"token": "",
"notification": {
"title": "",
"body": ""
},
"webpush": {
"fcm_options": {
"link": ""
},
"notification": {
"icon": ""
}
}
}
} The FCM backend formats the For firebase-messaging-sw.js, my payload works normally in background mode without doing anything. However, when it comes to foreground messages, these two payloads are lost, which is why I created this issue. |
@guiiamorim the code |
It looks like an attempted fix was merged in. Could you check to see if it fixes this issue? Thanks! |
Hey @rockmandash. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @rockmandash if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
This function removes
click_action
andicon
whenonMessage
is called by foreground app.firebase-js-sdk/packages/messaging/src/helpers/externalizePayload.ts
Lines 39 to 63 in 8d415c6
And the
image
is not supported on macOS 12, which makes the code very confusing.The text was updated successfully, but these errors were encountered: