CMOS CMOS - 1 month ago 14
AngularJS Question

Is it possible to programmatically call a telephone number in JS?

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

window.location = "tel:XXXXXXXXXX";
window.open('tel:XXXXXXXXXX', '_top');


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

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

Answer

None of the above examples work, anyone who tried it would have seen that. Posting the same answer as everyone else helps no one, and no one deserves this bounty.