1.1.3 • Published 4 years ago

cordova-plugin-phone-call v1.1.3

Weekly downloads
27
License
MIT
Repository
github
Last release
4 years ago

cordova-plugin-phone-call

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 cordova-plugin-phone-call

If Wanted the Beta Version

cordova plugin add https://github.com/lakshmansha/cordova-plugin-phone-call.git#develop

if you want to install a specific version just add #<version> to the link

Example:

cordova plugin add https://github.com/lakshmansha/cordova-plugin-phone-call.git#0.0.1

Description

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".

Usage

On Call function:

Required CALL_PHONE Permission for Android 5+ Version Apps.

AppChooser for ByPass the Default App.

To Enable Speaker-On

Error return by the plugin : ["feature", "notcall","empty"]

cordova.plugins.phonedialer.call(  
  "2125551212", 
  function(success) { alert('Dialing succeeded'); }, 
  function(err) {
    if (err == "empty") alert("Unknown phone number");
    else alert("Dialer Error:" + err);    
  },  
  onSpeakerOn,
  appChooser
 );
On Dial function:

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(success) { alert('Dialing succeeded'); },
  function(err) {
    if (err == "empty") alert("Unknown phone number");
    else alert("Dialer Error:" + err);    
  },
  appChooser
 );

License

This plugin was created under the MIT license.

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago