Question:
How could use sendMessage Remote API to send message with 2 lines
For example:
Bla bla bla
Bla bla bla
Answer:
For Android you can use break or paragraph XML tag:Hello<br>World
or<p>paragraph</p> <br>
The paragraph gives more empty space. Should work both in Control Panel and API.
For iOS the content should be:First line\r\nSecond line
iOS solution will work fine with the content API parameter:"content": "First line\r\nSecond line",
As for Control Panel, this text should be put into root params:{"aps":{"alert": {"title": "your title", "body": "First line\r\nSecond line"}}}
Comments
0 comments
Please sign in to leave a comment.