Cordova PhoneGap插件";startApp“;不使用jQueryMobile

Cordova PhoneGap插件";startApp“;不使用jQueryMobile,cordova,jquery-mobile,plugins,Cordova,Jquery Mobile,Plugins,我已经在我的一个应用程序中加入了startApp PhoneGap插件。有一个id为“myTest”的标签。我试图用startApp插件打开“Twitter”应用程序。 以下是我正在使用的代码: function onDeviceReady() { $("#myTest").on("click", function() { alert("clicked"); navigator.startApp.check("twitter://", function(

我已经在我的一个应用程序中加入了startApp PhoneGap插件。有一个id为“myTest”的标签。我试图用startApp插件打开“Twitter”应用程序。 以下是我正在使用的代码:

function onDeviceReady() {

    $("#myTest").on("click", function() {
        alert("clicked");
        navigator.startApp.check("twitter://", function(message) { 
            alert("Success");
        },
        function(error) {
            alert("ERR");
        });
    });
}
我正在使用jQueryMobile来完成这个任务。当应用程序第一次启动或关闭后重新启动时,startApp文件可以工作,但当我导航到应用程序中的不同页面并返回并单击链接打开Twitter时,这不起作用

这是jQueryMobile的问题还是其他问题?需要帮忙吗


我正在使用的PhoneGap插件是这样的:

您是否应该使用“navigator.startApp.start”而不是(或同时使用)“navigator.startApp.check”?您是否应该使用“navigator.startApp.start”而不是(或同时使用)“navigator.startApp.check”?