# cordova-plugin-packageinstaller

> use packageInstaller to install apk

Latest version **1.0.4** (published 2021-07-15) · MIT license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2021-07-15 |
| First published | 2021-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | JyunCun Chen |
| Maintainers | destiny19930929 |
| Keywords | cordova-android, Android 10, Android Q |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-packageinstaller
- npm.io page: https://npm.io/package/cordova-plugin-packageinstaller

## 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.4 (latest) — 2021-07-15
- 1.0.3 — 2021-01-15
- 1.0.2 — 2021-01-14
- 1.0.1 — 2021-01-14
- 1.0.0 — 2021-01-14

## README

# cordova-plugin-packageinstaller

Cordova installer plugin for Android. The plugin reads apk file path, and install it.

## install

cordova plugin add cordova-plugin-packageinstaller

## usage

```js

const installer = cordova.plugins.InstallApkSessionApi;

function success(message){
    console.log("success: " + message);
}

function error(message){
    console.log("error: " + message);
}

path = 'storage/emulated/0/Download/example.apk';
installer.install(path, success, error);

```

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