【问题标题】:PhoneGap 2.3: InAppBrowser plugin not foundPhoneGap 2.3:未找到 InAppBrowser 插件
【发布时间】:2013-01-29 00:38:20
【问题描述】:

我将 iOS 应用中的 PhoneGap 升级到了 2.3 版,该版本现在内置了 InAppBrowser 功能。

为了触发它,我调用了 JavaScript:

window.open(url, "_blank");

但这不起作用(我的应用程序中没有任何反应),而是我在日志中看到:

CDVPlugin 类 CVDInAppBrowser (pluginName: InAppBrowser) 不存在。错误:未找到插件“InAppBrowser”,或者不是 CDVPlugin。

检查 config.xml 中的插件映射。

-[CDVCommandQueue executePending] [Line 103] FAILED pluginJSON = ["InAppBrowser1976814969","InAppBrowser","open",["http://www.google.com","_blank",null]]

所以我检查了我的 config.xml,它看起来不错(肯定在那里):

<?xml version='1.0' encoding='utf-8'?>
<cordova>
    ...
    <plugins>
        ...
        <plugin name="InAppBrowser" value="CVDInAppBrowser" />
    </plugins>
    <access origin="*" />
    <access origin="*.jquery.com" />
    <access origin="*mydomain.de" />
</cordova>

【问题讨论】:

  • 嗨,我遇到了类似的问题 - 你解决过这个问题吗?
  • @JamesJ 不,我创建了一个全新的 PhoneGap 项目并将 www 文件夹从我的旧项目复制到新项目中。现在可以了..
  • 谢谢 - 我会试一试 - 与 EmailComposerWithAttachment 插件有同样的问题。

标签: cordova plugins


【解决方案1】:

我认为这里的问题可能是你有“CVDInAppBrowser”,但它应该是“CDVInAppBrowser”。

【讨论】:

    猜你喜欢
    • 2013-01-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多