Cordova在新应用程序窗口android中打开应用程序链接

Cordova在新应用程序窗口android中打开应用程序链接,android,jquery,cordova,Android,Jquery,Cordova,我在Cordova遇到了一个问题,我想链接到手机上安装的另一个应用程序,但该应用程序在我的Cordova应用程序中打开,而不会在新的应用程序窗口中打开 我正在使用window.open(url,“"u系统“);并且安装了appbrowser中的插件。 代码段: $("body").on("click","a.tile", function(e){ var url = $(this).data("url"); var playstore = $(th

我在Cordova遇到了一个问题,我想链接到手机上安装的另一个应用程序,但该应用程序在我的Cordova应用程序中打开,而不会在新的应用程序窗口中打开

我正在使用window.open(url,“"u系统“);并且安装了appbrowser中的插件。 代码段:

$("body").on("click","a.tile", function(e){

           var url = $(this).data("url");
           var playstore = $(this).attr("data-playstore");
           var appstore = $(this).attr("data-appstore");
           var deeplink = $(this).attr("data-deeplink");

           if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || $(window).width() < 960 ) {
             window.open(deeplink, '_system');
$(“body”)。在(“单击”,“a.tile”,函数(e)上{
var url=$(this).data(“url”);
var playstore=$(this.attr(“数据playstore”);
var appstore=$(this.attr(“数据appstore”);
var deeplink=$(this.attr(“数据deeplink”);
if(/Android | webOS | iPhone | iPad | iPod | BlackBerry | IEMobile | Opera Mini/i.test(navigator.userAgent)| |$(window.width()<960){
窗口打开(deeplink,“U系统”);
这里的问题是,如果我登录Yammer,应用程序就会崩溃,因为它可能有两个登录会话

有没有办法确保它在新窗口中打开已安装的应用程序


PS:这个问题在iOs上不会发生,只有在Android上才能使用以下java代码:

Intent LaunchIntent = this.cordova.getActivity().getPackageManager().getLaunchIntentForPackage("appPackage");
this.cordova.getActivity().startActivity(LaunchIntent);
或者你可以使用下面的插件来启动应用程序