Go to file
2014-12-18 11:49:06 +03:00
docs correct 2014-03-23 15:01:56 +04:00
src upload new version 2014-12-18 11:49:06 +03:00
test upload new version 2014-03-23 14:54:09 +04:00
www plugin to phonegap 3.0.0 2014-07-24 11:07:38 +04:00
.fetch.json rebuild 2013-09-26 06:42:32 -07:00
plugin.xml sending ios support 2014-07-10 15:41:03 -03:00
README.md Update README.md 2014-07-10 15:50:39 -03:00

cordova-plugin-startapp

Phonegap 3.. plugin for check or launch other application in android device.

Install: cordova plugin add https://github.com/lampaa/org.apache.cordova.startapp.git

Delete: cordova plugin rm org.apache.cordova.startapp

use:

Check the application is installed

navigator.startApp.check("com.example.hello", function(message) { /* success */
	console.log(message); // => OK
}, 
function(error) { /* error */
	console.log('47', error);
});

Start application without parameters

navigator.startApp.start("com.example.hello", function(message) { /* success */
	console.log(message); // => OK
}, 
function(error) { /* error */
	console.log('47', error);
});

Start application with parameters

navigator.startApp.start([
	"com.example.hello", // applucation
	"com.example.hello.MainActivity", // activity
	"product_id", // key
	"100" // value
], function(message) { /* success */
	console.log(message); // => OK
}, 
function(error) { /* error */
	console.log('47', error);
});

Start application in iOS

navigator.startApp.start("twitter://", function(message) { /* success */
	console.log(message); // => OK
}, 
function(error) { /* error */
	console.log('47', error);
});