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.
Try it on a real device.
None of these methods worked on the IOS emulator. It only worked on a physical device. That tripped me up for a while.
For this you will require to add this in the config.xml first
<access origin="tel:*" launch-external="yes" />
then call it like:
document.location.href = "tel:XXXXXXXXXX";
Whitelist Guide
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With