Campiagn Classic Android line breaks

Avatar

Avatar
Give Back
Level 1
daver37819942
Level 1

Like

1 like

Total Posts

35 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Give Back
Level 1
daver37819942
Level 1

Like

1 like

Total Posts

35 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
View profile
daver37819942
Level 1

16-06-2021

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.

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

515 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

515 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

16-06-2021

Hi,

 

Have you tried a custom notification layout?

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

 

Thanks,

-Jon

Avatar

Avatar
Give Back 50
Employee
Sukrity_Wadhwa
Employee

Likes

157 likes

Total Posts

915 posts

Correct reply

35 solutions
Top badges earned
Give Back 50
Validate 1000
Validate 500
Validate 250
Validate 100
View profile

Avatar
Give Back 50
Employee
Sukrity_Wadhwa
Employee

Likes

157 likes

Total Posts

915 posts

Correct reply

35 solutions
Top badges earned
Give Back 50
Validate 1000
Validate 500
Validate 250
Validate 100
View profile
Sukrity_Wadhwa
Employee

30-06-2021

Hi @daver37819942,

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

Thanks!