Ionic 4 Call Number Not Working

#1

Hello,

I am using Ionic 4 Beta. I am trying to use CallNumber plugin to call a number once clicked on the phone image. However, the call number plugin is not working. I used the correct documentation from the website but so far no luck

call.page.html
<img src = "/assets/icon/cellphone.svg" (click) = "callNow('18001010101')">

call.page.ts

callNow(number){
    this.callNumber.callNumber(number, true)
    .then(res => console.log('Launched dialer!', res))
    .catch(err => console.log('Error launching dialer', err));
  }
#2

Forget the callNumber plugin.

Install the inappbrowser plugin and just use a link to the telephone number…

either:

<a href="tel:12345">Call</a>

Or programatically…

window.open(`tel:12345`, '_system');

This will work for PWA’s as well.

#3

same problem with Call number under iOS (real device), simply not working.

On Android real device work fine, but not on iOS.

Any suggestion??

#4

can you put a example making call using inappbrowser plugin?

Thanks,

#5

Sure…