Cordova InAppBrowser - 在InAppBrowser容器中从Web打开弹出窗口 [英] Cordova InAppBrowser - Open popups from web within the InAppBrowser container
问题描述
Folks,
我有一个移动应用程序,可以使用InAppBrowser(IAB)在应用程序中打开外部URL链接。
然而,当我在IAB中打开的网页包含一个通常在弹出/第二个窗口中打开的链接时,这不会被加载/显示。
<这是不是IAB不支持吗?
谢谢,
骷髅
您需要覆盖:
web.setWebChromeClient(new WebChromeClient(){new WebChromeClient(){}} <你的
MainActivity.java
中的$ code>
。这会强制所有 url
在 IAB
中打开。
Folks,
I have a mobile app that opens external URL links within the App by using InAppBrowser (IAB).
However, when the web I open in IAB contains a link that would normally open in a popup/second window, this doesn't get loaded/displayed.
Is this just not supported by IAB?
Thanks, Skull
You need to override:
web.setWebChromeClient(new WebChromeClient(){new WebChromeClient (){}}
in your MainActivity.java
.This will force all url
to be open in your IAB
.
这篇关于Cordova InAppBrowser - 在InAppBrowser容器中从Web打开弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!