Cordova InAppBrowser - 在InAppBrowser容器中从Web打开弹出窗口 [英] Cordova InAppBrowser - Open popups from web within the InAppBrowser container

查看:1170
本文介绍了Cordova InAppBrowser - 在InAppBrowser容器中从Web打开弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆