我想获得的PhoneGap 2.4.0文件传输工作在Android 4.2。
I am trying to get PhoneGap 2.4.0 FileTransfer working on Android 4.2.
我得到一个logcat的警告消息说:
I get a Logcat warning message saying:
The Source URL is not in white list: 'http://api.etc.com'
在我的RES / XML / cordova.xml我有
Inside my res/xml/cordova.xml I have
<access origin=".*" subdomains="true"/>
这应该是所有列入白名单网址,但没有运气,我仍然得到同样的警告,文件传输错误3.
This is supposed to whitelist all URL's but no luck, I still get the same warning and FileTransfer error 3.
任何想法?我可以检查是否cordova.xml被解析呢?
Any ideas? Can I check if cordova.xml is being parsed at all?
编辑:我使用的是CordovaWebView
I'm using a CordovaWebView.
推荐答案
我设法用PhoneGap的1.9.0,而不是2.4.0来解决这个问题。这些错误使用更高版本时返回。
I managed to fix the problem by using PhoneGap 1.9.0 instead of 2.4.0. The errors return when using later versions.
我也设法得到它的工作,不使用CordovaWebView而是使用PhoneGap的构建。但是,这是不可行的在我的情况。
I also managed to get it working by not using CordovaWebView but by using PhoneGap build. But this isn't viable in my case.
相关推荐
最新文章