# cordova-plugin-invokedialer

> Invoke the dial application in android

Latest version **1.0.2** (published 2019-10-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-invokedialer
pnpm add cordova-plugin-invokedialer
yarn add cordova-plugin-invokedialer
bun add cordova-plugin-invokedialer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-10-20 |
| First published | 2019-10-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Navnath A |
| Maintainers | 9adsul |
| Keywords | ecosystem:cordova, cordova-android, dialer, cordova |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-invokedialer
- Repository: https://github.com/9adsul/InvokeDialer
- Homepage: https://github.com/9adsul/InvokeDialer#readme
- Issues: https://github.com/9adsul/InvokeDialer/issues
- npm.io page: https://npm.io/package/cordova-plugin-invokedialer

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-10-20
- 1.0.1 — 2019-10-20
- 1.0.0 — 2019-10-20

## README

# Invoke Dialer

This plugin allows you to invoke the Dialer in the android mobile. This plugin useful in android application created using hosted web application and cordova framework. 

## Getting Started

### Installing

Install the plugin 
```
cordova plugin add cordova-plugin-invokedialer
```
OR

```
cordova plugin add https://github.com/9adsul/InvokeDialer.git
```

### How to Use ?

#### cordova.plugins.InvokeDial.invokeDial(number, successCallback,errorCallback)

The `cordova.plugins.InvokeDial.invokeDial` function opens the device's default dial application.


- `number` Its phone number with prefix `tel:` e.g. `tel:040-6700 6700` or `tel: +91 9989000000`
- `successCallback` after successful invoke it will return `Success`
- `errorCallback` it will return error messages if any occures


__Supported Platforms__

- Android

### Example


```js
cordova.plugins.InvokeDial.invokeDial(number, onSuccess, onError);
// number = "tel:040-6700 6700" or "tel: +91 9989000000"
function onSuccess() {
    console.log("Phone/Dial invoked successfully.")
}

function onError(message) {
    console.error(message);
}

```

---
_Source: https://npm.io/package/cordova-plugin-invokedialer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
