diff --git a/src/android/startApp.java b/src/android/startApp.java index 8624663..1d95938 100644 --- a/src/android/startApp.java +++ b/src/android/startApp.java @@ -43,17 +43,20 @@ public class startApp extends CordovaPlugin { if (action.equals("start")) { this.start(args, callbackContext); } - else if(action.equals("check")) { - this.check(args, callbackContext); - } - else if(action.equals("getExtras")) { - this.getExtras(callbackContext); - } - else if(action.equals("getExtra")) { - this.getExtra(args, callbackContext); - } - - return true; + else if (action.equals("go")) { + this.start(args, callbackContext); + } + else if(action.equals("check")) { + this.check(args, callbackContext); + } + else if(action.equals("getExtras")) { + this.getExtras(callbackContext); + } + else if(action.equals("getExtra")) { + this.getExtra(args, callbackContext); + } + + return true; } //-------------------------------------------------------------------------- diff --git a/www/startApp.js b/www/startApp.js index 5680915..c6a6070 100644 --- a/www/startApp.js +++ b/www/startApp.js @@ -40,6 +40,12 @@ module.exports = { errorCallback = errorCallback || function() {}; exec(completeCallback, errorCallback, "startApp", "check", output); + }, + go: function(completeCallback, errorCallback) { + completeCallback = completeCallback || function() {}; + errorCallback = errorCallback || function() {}; + + exec(completeCallback, errorCallback, "startApp", "go", output); } } }, diff --git a/www/startApp.manually.js b/www/startApp.manually.js index a71f441..315b33a 100644 --- a/www/startApp.manually.js +++ b/www/startApp.manually.js @@ -41,6 +41,12 @@ module.exports = { errorCallback = errorCallback || function() {}; exec(completeCallback, errorCallback, "startApp", "check", output); + }, + go: function(completeCallback, errorCallback) { + completeCallback = completeCallback || function() {}; + errorCallback = errorCallback || function() {}; + + exec(completeCallback, errorCallback, "startApp", "go", output); } } },