I am using Firebase Cloud Messaging to send push notification to IOS and Android devices. I would like to send some text in message body, which has a part of it bold. That's how my JSON looks like now for android push notifications:
{
"message":{
"token":"bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...",
"notification":{
"body":"Some plain text THIS TEXT SHOULD BE BOLD some plain text"
}
}
}
Now I would like to see the message in my push notification like this: "Some plain text THIS TEXT SHOULD BE BOLD some plain text"
Is it possible to do so?
It's not possible to change the font characteristics for notification type messages with FCM. If you need to do some special work to create a notification, you should instead send a message with a data payload, and deal with its contents yourself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With