I am trying to launch the phone dialer in my worklight 6.2 hybrid application when clicking on a button and/or an anchor tag. Below is the code I am using.
button:
<button onClick='window.parent.location.href = "tel:+1xxxx"'>Tel</button>
anchor tag:
<a href='tel:+18001111111' class="ui-link">(800) 111-1111</a>
When we click on button/anchor tag below is the behavior in android and iOS.
In android:
Displays a pop up window with the message
Application Error net::ERR_UNKNOWN_URL_SCHEME (TEL:+18001111111)
In iOS:
The click event doesn't respond.