How to use Rohfosho/CordovaCallNumberPlugin

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.

Source: html5

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.