Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Campiagn Classic Android line breaks

Avatar

Level 3

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.

 

4 Replies

Avatar

Community Advisor

Hi,

 

Have you tried a custom notification layout?

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

 

Thanks,

-Jon

Avatar

Level 3
Sorry, did not work. ACC doesnt seem to want or like to add line breaks for android. Still searching

Avatar

Administrator

Hi @daver37819942,

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

Thanks!