Getting Push Notification's message only in a single line, whereas I was expecting it in multiple lines with BigPictureStyle and Base (both the Notification styles).
See the attached Screenshot, whereas in this image, we are just showing "Hello from Firebase Cloud Messaging" so this fits in single line itself.
But the fact is, If I am trying to show "Hello from Firebase Cloud Messaging and again Hello from Firebase Cloud Messaging" even then I am getting Message in single line only with three dots at the end like this ...
Here is the required part of the code, I am using:
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
.setLargeIcon(image)/*Notification icon image*/
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle(messageTitle)
.setContentText(messageBody)
.setStyle(new NotificationCompat.BigPictureStyle()
.bigPicture(image)
.setBigContentTitle(messageTitle)
.setSummaryText(Html.fromHtml(messageBody)
.toString()))/*Notification with Image*/
.setAutoCancel(true)
.setSound(defaultSoundUri)
.setContentIntent(pendingIntent);
NOTE: Same issue, I am facing whenever, I am sending message without Big Image (Base / Simple Push Notification)
See this screenshot:
So, the only concern is How to show multiline message in Notification ?.

