call-number

1.0.1 • Public • Published

CordovaCallNumberPlugin

Call a number directly from your cordova application.

Install the plugin using:

cordova plugin add https://github.com/Rohfosho/CordovaCallNumberPlugin.git 

or

npm install 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);
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    6,300
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    6,300
  • 1.0.0
    0
  • 0.0.2
    27

Package Sidebar

Install

npm i call-number

Weekly Downloads

6,327

Version

1.0.1

License

Apache 2.0

Last publish

Collaborators

  • nishilshah17
  • rohvar98