mirror of
https://github.com/lampaa/com.lampa.startapp.git
synced 2026-02-15 00:07:54 +08:00
d4e8cdfd06997f3c2979a3f39f81bf8a6080667e
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.teaway.teamenu', // applucation
'com.teaway.teamenu.MainActivity', // activity
'product_id', // key
'102' // value
], function(message) { /* success */
console.log(message); // => OK
},
function(error) { /* error */
console.log('47', error);
});
Description
Languages
Java
37.3%
HTML
32.7%
JavaScript
24.1%
Objective-C
5.9%