[英]Ionic - Windows 10 app . Window.open() not working
I have an ionic 2 app from which I am building IOS/Android and windows 10. In some of the pages I use the function window.open(file.MediaUrl, "_blank");
我有一个ionic 2应用程序,将通过该应用程序构建IOS / Android和
window.open(file.MediaUrl, "_blank");
。在某些页面中,我使用函数window.open(file.MediaUrl, "_blank");
to open files in browser. 在浏览器中打开文件。
On IOS and Android, the function is working properly and opening the links from the browser, however on windows 10 app, it is opening a new app window(not browser) then crashing and closing the whole app. 在IOS和Android上,该功能正常运行并打开了浏览器中的链接,但是在Windows 10应用程序上,它正在打开一个新的应用程序窗口(而非浏览器),然后崩溃并关闭了整个应用程序。 Any idea why?
知道为什么吗?
I made it work by using this. 我通过使用它使它工作。
https://ionicframework.com/docs/native/in-app-browser/ https://ionicframework.com/docs/native/in-app-browser/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.