Cordova InAppBrowser - Open popups from web within

2019-07-04 21:50发布

问题:

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.