Call Number
Call a phone number from your Ionic App. Learn how we integrated Call Number plugin to Ion2FullApp Ionic Template to call a number directly from the Ionic app.
We removed this plugin because it’s not stable and it was causing lots of problems. Use it at your own risk.
We use this plugin to call a number directly from the app.
To install the plugin run:
1
$ ionic plugin add call-number --save
2
3
$ npm install --save @ionic-native/call-number
Copied!
Usage example:
The usage is very simple, we only need to know the phone number we want to call when the platform is ready.
1
openInAppBrowser(){
2
this.platform.ready().then(() => {
3
this.inAppBrowser('https://google.com', '_blank', "location=yes");
4
})
5
}
Copied!
The second parameter from the callNumber function is a boolean to bypass the app chooser. Set it to true if you always wish to bypass the app chooser if user has multiple applications installed that can handle calls.
1
<button ion-button clear (click)="call()">
2
<ion-icon name="md-call"></ion-icon>
3
</button>
Copied!
Last modified 3yr ago
Copy link