Notorious Penguin Magicians

    cordova-plugin-exitapp

    1.0.0 • Public • Published

    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?'); }

    Install

    npm i cordova-plugin-exitapp

    DownloadsWeekly Downloads

    214

    Version

    1.0.0

    License

    Apache 2.0

    Last publish

    Collaborators

    • rakesh-walisheter