Using cordova plugins in InAppBrowser

2019-09-03 00:45发布

问题:

Is it possible to use cordova plugins in a site in InAppBrowser? And when how? The deviceready event is never fired in the InAppBrowser?

回答1:

I believe it isn't possible to use Cordova plugins within a InAppBrowser. You are only limited to to the addEventListeners there are. And Cordova is not loaded within the InAppBrowser.

You can ofcourse inject Javascript, but that is also different than running a complete Cordova within the InAppBrowser.