How to use this plugin with onSuccess and onError function my code is this:
$scope.callNumber= function (){
var number = 3333322456;
var onSuccess=function(number){
alert("invia messaggio");
};
function onError(error) {
alert('code: ' + error.code + '\n' +
'message: ' + error.message + '\n');
}
window.plugins.CallNumber.callNumber(onSuccess, onError, number);
}
but it doesn't work.
Follow this tutorial. It helps me http://rickluna.com/wp/2012/02/making-a-phone-call-from-within-phonegap-in-android-and-ios/
But it's not about this plugin. it's a different way to call immediately via cordova.