Skip to content

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

Notifications You must be signed in to change notification settings

markeeftb/org.apache.cordova.startapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-startapp

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

Install: cordova plugin add https://github.com/markeeftb/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);
});

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 34.5%
  • CSS 34.0%
  • JavaScript 31.5%