Is it possible to programmatically call a telephone number in JS?
<p>So basically right now I can create a button with an A tag that has an href="tel:XXXXXXXXXXX" and if a user clicks / taps on that it will bring them into their phone application. However I am trying to do this programmatically on gesture recognition (swipe). The gesture is working, so far I have tried <code>window.location = "tel:XXXXXXXXXX";
window.open('tel:XXXXXXXXXX', '_top');</code></p>

<p>neither of which have worked yet. Any idea? Ionic / Angular 1</p>

<p>Note** It appears to only happen on iOS, Android seems to be working fine. </p>