OnsenUi and PhoneDialer plugin

  • Hy guys!
    I’ve tried to follow this tip :

    to acess the phone dial, but no sucess.
    Anyone knows a way or why my click seems empty.? Could be the order of .js files?


    $scope.dial = function () {
                "number here",
                 function (err) {
                     if (err == "empty") alert("Número desconhecido");
                     else alert("Erro ao tentar ligar:" + err);
              function (success) { alert('Ligação bem sucedida'); }


        <!-- Cordova reference -->
        <script src="cordova.js"></script>
        <script src="scripts/index.js"></script>
        <script src="scripts/callme.js"></script>
        <!-- -->
     <div class="prop-desc">
                                    <ons-icon icon="fa-mobile"></ons-icon>
                                    <ons-button style="font-size: 24px;" modifier="large" ng-click="dial()">Phone</ons-button>

  • I’ve found a way to call , very easy!

     <ons-button style="font-size: 24px;" modifier="large" onclick="window.open('tel: {{69000000}}', '_system')">Call</ons-button>

Log in to reply