问题
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