how do we add a line break in push notifications?

6,069 views
Skip to first unread message

v3mobi....@gmail.com

unread,
May 19, 2016, 3:24:55 AM5/19/16
to CleverTap Support, parth....@v3mobi.com, akanksh...@v3mobi.com
Hi there,

Currently, when we send out push notifications with multiple line breaks, all the content gets cramped into a single line.

How we are achieving the required result is via giving multiple spaces in between the two lines to make the next statement get automatically shifted to a new line due to character length constraint. Is there a way wherein we are not required to follow this method, but get the desired line break as and where required?

Thanks,
Parth

CleverTap Support

unread,
May 19, 2016, 6:06:57 AM5/19/16
to CleverTap Support, parth....@v3mobi.com, akanksh...@v3mobi.com
Hey Parth,

The CleverTap SDK's method uses Android's default notification layout, which is single line.

If you do wish to paint your notifications in multiple line breaks, we allow you to use your own method and parse the payload yourself.

When you do this, you can use the setStyle() method to paint multiline notifications.


- Support
Reply all
Reply to author
Forward
0 new messages