1.0.1 • Published 8 years ago

cordova-plugin-call-number v1.0.1

Weekly downloads
510
License
Apache 2.0
Repository
github
Last release
8 years ago

CordovaCallNumberPlugin

Call a number directly from your cordova application.

cordova plugin add cordova-plugin-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);
}