Skip to content

nehalasim/cordova-plugin-phone-call

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

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

License

This plugin was created under the MIT license.

About

Cordova Phone Call Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 51.4%
  • Java 38.5%
  • JavaScript 10.1%