Cordova InAppBrowser - Open popups from web within the InAppBrowser container

╄→尐↘猪︶ㄣ 提交于 2020-01-04 04:22:06

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/40002964/cordova-inappbrowser-open-popups-from-web-within-the-inappbrowser-container

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!