Ibm mobilefirst window.open addEventListener在“上不工作”;“移动浏览器模拟器”;

Ibm mobilefirst window.open addEventListener在“上不工作”;“移动浏览器模拟器”;,ibm-mobilefirst,worklight-mbs,Ibm Mobilefirst,Worklight Mbs,我正在使用IBM Worklight 6.2 我正在使用window.open为OAuth加载一些外部页面,并为打开的窗口配置事件侦听器 var authWindow = window.open(authUrl, '_blank', 'location=yes'); authWindow.addEventListener('loaderror', function(e) { console.log(">> load error. event: " + JSON.stri

我正在使用IBM Worklight 6.2

我正在使用window.open为OAuth加载一些外部页面,并为打开的窗口配置事件侦听器

var authWindow = window.open(authUrl, '_blank', 'location=yes');

authWindow.addEventListener('loaderror', function(e) {  
    console.log(">> load error. event: " + JSON.stringify(e));
});
也适用于“加载”和“加载开始”事件

这在Android和iOS中都可以使用,但当我在“移动浏览器模拟器”中预览应用程序时,不会执行eventListeners

我还测试了创建“desktopbrowser”应用程序


有什么想法吗?

Loaderror、loadstart和loadstop是Cordova特有的,在移动浏览器模拟器中不受支持。最好在模拟器或设备上测试这些。请参阅:

在移动浏览器模拟器中,您还可以访问Cordova功能,例如访问GPS或摄像头。是否有任何规则可以知道在模拟器中Cordova的哪些功能可用?请参见