Plugin for cordova greater or equal than v3.0.0_ to enable to call Mobile.
##Installation
Just type the following statement in your cli Cordova for install.
cordova plugin add https://github.com/lakshmansha/cordova-plugin-phone-call.git
if you want to install a specific version just add #v<version>
to the link
Example:
cordova plugin add https://github.com/lakshmansha/cordova-plugin-phone-call.git#v0.0.1
Enables Cordova apps on the iPhone and Android platforms to dial a phone number without requireing additional user interaction (such as the 'Call / Cancel' popup that ordinarilly would occur when using window.location.href = "tel:2125551212".
Required CALL_PHONE Permission for Android 5+ Version Apps.
AppChooser for ByPass the Default App.
Error return by the plugin : ["feature", "notcall","empty"]
cordova.plugins.phonedialer.call(
"2125551212",
function(err) {
if (err == "empty") alert("Unknown phone number");
else alert("Dialer Error:" + err);
},
function(success) { alert('Dialing succeeded'); },
appChooser
);
Don't Required CALL_PHONE Permission for Android 5+ Version Apps.
AppChooser for ByPass the Default App.
Error return by the plugin : ["feature", "notcall", "empty"]
cordova.plugins.phonedialer.dial(
"2125551212",
function(err) {
if (err == "empty") alert("Unknown phone number");
else alert("Dialer Error:" + err);
},
function(success) { alert('Dialing succeeded'); }
);
This plugin was created under the MIT license.