Multi-line message in cordova notification

I want to show notification in Intel XDK using Cordova Notification plugin with multiple line messages like:

  • Line 1
  • Line 2
  • Line 3

I had a search around and try permissions like using "\ n" or "\ r \ n" or "\ n" but they all don't work.

What should I solve this problem, or the Cordova Notification plugin doesn't support multiple message lines?

+3


source to share


1 answer


This does not work

navigator.notification.alert("break<br>the line",null,"Test","OK");

      



It works

navigator.notification.alert("break \r\n the line",null,"Test","OK");

      

+3


source







All Articles