I want to know how exactly do we include bold text in iOS push notifications. I have attached a sample image below.

Just like Time for bed i want to trigger push notification with bold text for title and normal text for body like "Stay consistent: Go to bed in 15 minutes"
I see many other apps also do it.
From: bold (or other formatting) in iOS push notification
There is no rich text functionality in iOS Push Notifications.
An alternative for iOS 8.2 plus may be to use the 'title' to display the sender's name, and place the new message in the body. For example, try a payload such as this:
{
"aps": {
"alert": {
"title": "Jim",
"body": "Hey bob"
},
"badge": 2
}
}
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