Discussions

Ask a Question
Back to All

SMS Text Line Break

This is Andrew again, I was unable to access the previous discussion board I made. About adding a line break in the SMS text, I've pinpointed the issue; here's our code:
const data = {
user_id: '1234',
text: "Dialpad demo today!\rThis should be another line",
to_numbers: ['+18883334444']
};

sending this data to two of my teammates phones, who both have iPhones, works perfectly. The \r character returns a new line. However, I have a Google Pixel 3a, and everytime I receive the text on my phone it is not formatted properly. There is no line break. Any way we could get help with this? Our team has no guarantee that our clients will have iPhones and not another type of smartphone.