A plugin that implements `navigator.app.exitApp` on WP8
Switch branches/tags
Nothing to show
Clone or download
gaqzi Merge pull request #2 from rakesh-walisheter/master
Added support for exiting app in Android
Latest commit 1286ede Nov 3, 2015
Permalink
Failed to load latest commit information.
src Adding Android Support Sep 2, 2015
www Initial commit Nov 6, 2013
README.md Plugin published to npm Sep 3, 2015
package.json Plugin published to npm Sep 3, 2015
plugin.xml Plugin published to npm Sep 3, 2015

README.md

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.

If you are not using the Cordova Command-line Interface, follow Using Plugman to Manage Plugins.

Usage

confirmed = function(buttonIndex) { if(buttonIndex == 1) { console.log("navigator.app.exitApp"); navigator.app.exitApp(); } }

onTouch = function() { navigator.notification.confirm('', confirmed, 'Exit?'); }