FCM notification & data objects (v0.11.0)
Hi all!
I know that there are a couple of discussions about this subject but I created this one hoping to clear things out a little bit.
As I've seen from FCM documentation (v1), while sending a message, one can specify two objects:
notification
, data
.
For example:
However, from my testing with Novu so far, when I add the data
type in the overrides
field, it sends the data but it omits the title&message
fields from the template
. So, the data fields are sent to the device but the message is empty..
Event trigger example:
I'd appreciate any comments or thought on this π
Thanks!3 Replies
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
It works exactly as @sheena suggested. Keep in mind that all fields in "data" object need to be strings, even numbers and booleans.
For example:
A big thanks to @sheena for all the help!! π
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View