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.