You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when sending a data-type notification, it lacks the push message content that was initially set during the push provider configuration step in the workflow. After inspecting the code below
It turned out that it uses the body property instead of message.
According to Expo documentation, as stated in Send notifications with FCM & APNs, the correct property to use should be message rather than body. I further confirmed this by introducing a custom field labeled message to the payload given that the data property essentially combines the different payload and overrides properties. It worked, however, the drawback is that the message property originated from the backend, which implies that we would be unable to configure it within the workflow, templates, and internationalization (i18n).
📜 Description
Currently, when sending a data-type notification, it lacks the push message content that was initially set during the push provider configuration step in the workflow. After inspecting the code below
novu/providers/fcm/src/lib/fcm.provider.ts
Line 69 in bfc3862
It turned out that it uses the
body
property instead ofmessage
.According to Expo documentation, as stated in Send notifications with FCM & APNs, the correct property to use should be
message
rather thanbody
. I further confirmed this by introducing a custom field labeledmessage
to the payload given that thedata
property essentially combines the different payload and overrides properties. It worked, however, the drawback is that themessage
property originated from the backend, which implies that we would be unable to configure it within the workflow, templates, and internationalization (i18n).👟 Reproduction steps
👍 Expected behavior
👎 Actual Behavior with Screenshots
Novu version
Novu SaaS
npm version
No response
node version
No response
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: