Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
OnsenUi and PhoneDialer plugin
-
Hy guys!
I’ve tried to follow this tip :http://stackoverflow.com/questions/29472431/onsen-ui-how-to-dial-with-ng-click-inside-ons-button
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?https://build.phonegap.com/plugins/328
$scope.dial = function () { phonedialer.dial( "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'); } ); }
I
<body> <!-- 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> </div>
-
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>