You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemmionic5/Mohem/plugins_/call-number
ashwaq 66795daf5e add missing files 6 years ago
..
src add missing files 6 years ago
LICENSE add missing files 6 years ago
README.md add missing files 6 years ago
plugin.xml add missing files 6 years ago

README.md

CordovaCallNumberPlugin

Call a number directly from your cordova application.

Install the plugin using:

npm install call-number

or

yarn add call-number

Use the plugin in your JS file:

window.plugins.CallNumber.callNumber(onSuccess, onError, number, bypassAppChooser);

number: String; phone number to call (e.g. "1234567890")

bypassAppChooser: boolean; true if you always wish to bypass the app chooser if user has multiple applications installed that can handle calls

Make sure to create onSuccess and onError call back functions.

Example:

function onSuccess(result){
  console.log("Success:"+result);
}

function onError(result) {
  console.log("Error:"+result);
}