CallNumber

Improve this doc

$ ionic plugin add call-number

Repo: https://github.com/Rohfosho/CordovaCallNumberPlugin

Call a number directly from your Cordova/Ionic application.

Supported platforms

Usage

import {CallNumber} from 'ionic-native';

CallNumber.callNumber(18001010101, true)
  .then(() => console.log('Launched dialer!'))
  .catch(() => console.log('Error launching dialer'));

Static Members

callNumber(numberToCall, bypassAppChooser)

Calls a phone number

Param Type Details
numberToCall string

The phone number to call as a string

bypassAppChooser boolean

Set to true to bypass the app chooser and go directly to dialer

Returns: Promise<any>

API

Native

General