Multiple Lines of text message for Push Notificati

2019-06-25 12:58发布

问题:

I am trying for push notification with multiple lines text message. I have tried many changes like FCMService.java with setBigStyle text format, HTML.fromHTML, and some other. But not able to get the multiple line message.

I have gone through multiple sites and solution but not work. Marking it at duplicate or vote down, help me. I will up flag for your answer.

回答1:

Sorry Guys!. I have found the solution.

No need of doing any kind of modification in the any file like FCMService.java or any other custom messages for showing of multiple lines of Notification while using Push Notification V5.

Remove the field "style", from the object you are sending notification.

Automatically the Multiple lines of notification will be seen.

For more information, upvote the answer, ask your query. I will help you out.