【问题标题】:Phonegap Blackberry build error for cross domain跨域的Phonegap Blackberry构建错误
【发布时间】:2012-05-05 07:30:03
【问题描述】:

当我从 phonegap 构建我的应用程序时。它适用于 iPhone、iPad、Android,但不适用于黑莓。

我正在调用跨域 API WSDL。

在黑莓中它给出错误

 URL (exmple :- http://google.com)- could not be retrieved because it was not found in config.xml.

 Please verify the <access> elements in the WebWorks config. Contact your service provider if the problem persists.

我必须使用config.xml

<access subdomains="true" uri="*" /> OR <access origin="*" />

?

【问题讨论】:

    标签: blackberry cordova


    【解决方案1】:

    上次我遇到这个问题时,似乎所有 URL 都必须对 BB 明确。如果您的 URL 在运行时未知(例如,用户输入了 URL),那么唯一的解决方法是

    <feature id="blackberry.app" >
        <param name="websecurity" value="disable" />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-11
      • 2017-03-08
      相关资源
      最近更新 更多