Unlocking a phone line on an Android phone

I have navigator.notification.alert ("text with phone number: 0-123-456-789") for android. The problem is that the phone number is divided into two lines, it looks like this:

some text with phone number: 0-123-456- 789 

and I want the phone number not to be broken. The phone number is short enough to appear on one line. should look like this:

 some text with phone number: 0-123-456-789 

For example, 0123456789 will be printed on one line without interrupting the line inside.

So, how can I add a line break before the Android phone number. \ N does not work. it is displayed as text in a warning message or text before \ n is displayed as a single line, and why its back is hidden.

1) So, the question is how to split the line before the phone number?

2) Or how not to break the line by phone number.

On the iPhone, \ n it works fine.

Thanks.

+4
source share
1 answer
 \n\r 

Worked for me on Android

 navigator.notification.confirm('This will \n\r break', null, 'Title'); 
+6
source

Source: https://habr.com/ru/post/1443327/


All Articles