Campiagn Classic Android line breaks | Community
Skip to main content
daver37819942
Level 3
June 16, 2021
Question

Campiagn Classic Android line breaks

  • June 16, 2021
  • 2 replies
  • 2293 views

How does one add line breaks to an android push in campaign classic? 

yes, we have NotificationCompat.BigTextStyle() coded in the app which allows the message to expnd bu it 1 single line and we would hope to add line breaks.

We tried appending 

var body = delivery.content.androidMessage.source;
body = body.replace(/\n/g, '\n').replace(/\n\r/g, '\n').replace(/\r/g, '\n'); and a few other verions but no luck.

In comparison ACS(standard) you can add line breaks.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Jonathon_wodnicki
Community Advisor
Community Advisor
June 16, 2021

Hi,

 

Have you tried a custom notification layout?

Would be a matter of splitting the notification across multiple <TextView/>'s:

 

Thanks,

-Jon

daver37819942
Level 3
June 24, 2021
Sorry, did not work. ACC doesnt seem to want or like to add line breaks for android. Still searching
Sukrity_Wadhwa
Community Manager
Community Manager
July 1, 2021

Hi @daver37819942,

Were you able to resolve this query or do you still need more help here? Do let us know.

Thanks!

Sukrity Wadhwa