Windows 8 下的 InAppBrowser 不工作

InAppBrowser under Windows 8 doesn´t work

我在不同平台下的 Cordova 项目中工作,例如 iOS 和 Windows 8 平板电脑,此应用程序支持 IE11 或 Chrome 等浏览器,但我我在使用 InAppBrowser 插件时遇到问题,在 W8 平板电脑下无法正常工作,如果您在不同的按钮中执行 "tap" 打开附件,此事件将无法正常工作...这是什么问题??!

我有一个 class 可以使用下一个代码来管理它...

openLinkInNewWindow: function (url) {
    var link = Ext.getDom(this.getLinkId()),
        clickevent = document.createEvent('Event'),
        hash = location.hash;

    if (Ext.browser.is.Standalone) {
        localStorage.setItem('lastVisitRouteForLunchApp', hash);
    }
    if (Ext.os.deviceType == "Tablet" && Ext.os.name == "Windows") {
        window.open(url, '_blank', 'location=yes');
    }
    if (Ext.os.deviceType == "Tablet" && Ext.os.name == "iOS") {
        window.open(url, '_blank', 'location=yes');
    } else {
        link.href = url;
        Ext.Function.defer(function () {
            clickevent.initEvent('click', true, false);
            link.dispatchEvent(clickevent);
        }, 500);
    }
}

我做错了什么? (代码基于 Sencha Touch 框架)

我在 index.html

中添加了下一个代码找到了解决方案
function isPhoneGap() {
    if (navigator.userAgent.match(/(iPhone|iPod|iPad)/)) {
        return true;
    } else {
      return false;
    }
}

function openPage(link) {
    if (isPhoneGap() == true) {
        var ref = window.open(link.href, '_blank', 'location=yes,enableViewPortScale=yes');
        return false;
    } else {
        return true;
    }
}

现在它可以正常工作了,我很高兴!!! :-)