Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!

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!



Sukrity Wadhwa