Reprinted from: https: //blog.csdn.net/u012442504/article/details/87367153
// After the extended API calls onPlusReady loaded callback
document.addEventListener ( "plusready", onPlusReady, to false);
// extension API loaded, now properly called extended API
function onPlusReady () {
}
// call the third party programs
/ / browser calls the
function launchApp () {
IF (plus.os.name == "Android") {
plus.runtime.launchApplication ({pname: "com.android.browser"
, Extra: {url: "HTTP: // www.html5plus.org "}}, function (E) {
Alert (" failed the Open System Browser default: "+ e.message);
});
} the else IF (plus.os.name ==" the iOS ") {
PLUS .runtime.launchApplication ({action: "http://www.html5plus.org" }, function (e) {
Alert ( "Browser failed the Open System default:" + e.message);
});
}
}
use:
plus.runtime.openURL("market://details?id=com.zendaccess.smartaccess", function(e) {
plus.runtime.openURL("market://details?id=com.zendaccess.smartaccess", function(e) {
plus.runtime.openURL("market://details?id=com.zendaccess.smartaccess", function(e) {
plus.runtime.openURL("market://details?id=com.zendaccess.smartaccess", function(e) {
plus.runtime.openURL("market://details?id=com.zendaccess.smartaccess", function(e) {
plus.runtime.openURL("market://details?id=com.zendaccess.smartaccess", function(e) {
plus.runtime.openURL("market://details?id=com.zendaccess.smartaccess", function(e) {
mui.alert ( "360 Mobile Assistant application and treasure, Huawei market, Baidu assistant, AZ market, PP assistant, you did not install a ,, thanks for the support");
}, "com.pp.assistant"); // PP assistant market
}, "cn.goapk.market"); // ING market
}, "com.dragon.android.pandaspace"); // Baidu assistant market
}, "com.huawei.appmarket"); // Huawei's market //
}, "com.qihoo.appstore"); // 360 market
}, "com.tencent.android.qqdownloader"); // application markets treasure
}, "com.android.vending"); // google play