Skip to content

mnijholt/CordovaCallNumberPlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Call a number directly from your cordova application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 60.7%
  • Objective-C 29.9%
  • JavaScript 9.4%