在InAppBrowser中使用Cordova插件 [英] Using cordova plugins in InAppBrowser

查看:80
本文介绍了在InAppBrowser中使用Cordova插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在InAppBrowser中的站点中使用cordova插件?什么时候? 从未在InAppBrowser中触发deviceready事件吗?

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

推荐答案

我认为无法在InAppBrowser中使用Cordova插件.您只限于使用 addEventListeners .而且Cordova不会加载到InAppBrowser中.

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.

您当然可以注入Java语言,但这与运行a在InAppBrowser中完成Cordova.

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

这篇关于在InAppBrowser中使用Cordova插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆