# cordova-plugin-exitapp

> Implements navigator.app.exitApp on WP8, Android

Latest version **1.0.0** (published 2015-09-03) · Apache 2.0 license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2015-09-03 |
| First published | 2015-09-03 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rakesh Walisheter |
| Maintainers | rakesh-walisheter |
| Keywords | cordova, exit, terminate, ecosystem:cordova, cordova-wp8, cordova-android |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-exitapp
- Repository: https://github.com/rakesh-walisheter/cordova-plugin-exitapp
- Homepage: https://github.com/rakesh-walisheter/cordova-plugin-exitapp#readme
- Issues: https://github.com/rakesh-walisheter/cordova-plugin-exitapp/issues
- npm.io page: https://npm.io/package/cordova-plugin-exitapp

## 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.0 (latest) — 2015-09-03

## README

cordova-plugin-exitapp
----------------------

This plugin adds the ability to programmatically close an app on Android or Windows Phone 8. 

## Installation

Plugin id: cordova.custom.plugins.exitapp

To install this plugin, follow the [Command-line Interface Guide](http://cordova.apache.org/docs/en/edge/guide_cli_index.md.html#The%20Command-line%20Interface).

If you are not using the Cordova Command-line Interface, follow [Using Plugman to Manage Plugins](http://cordova.apache.org/docs/en/edge/plugin_ref_plugman.md.html).

## Usage

confirmed = function(buttonIndex) {
    if(buttonIndex == 1) {
        console.log("navigator.app.exitApp");
        navigator.app.exitApp();
    } 
}

onTouch = function() {
    navigator.notification.confirm('', confirmed, 'Exit?');
}

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