【问题标题】:cordova-plugin-file-transfer plugin not working on Windows 10 sencha touch store appcordova-plugin-file-transfer 插件在 Windows 10 sencha touch store 应用程序上不起作用
【发布时间】:2015-11-16 10:02:30
【问题描述】:

我一直在我们的混合 html 应用程序中使用文件传输插件,它支持寡妇 8.1 和 ios 和 android,但我还需要它在 Windows 10 商店应用程序中工作。它似乎无法在 Windows 10 中下载文件,请建议一些替代插件从服务器下载文件,或者如果我们在 Windows 10 中完成这项工作

下面的示例代码

var fileTransfer = new FileTransfer();
var uri = encodeURI("some_url.com");
var fileName = "localpathofwindows"
fileTransfer.download(uri, fileName,
function(entry) {
console.log("file download success");
},
function(error) {
console.log("file download failure");
},
false, {
headers: {
"Authorization": auth,
"action": "getFiles"
}
});

【问题讨论】:

标签: javascript cordova sencha-touch windows-10-universal


【解决方案1】:

首先,apache cordova 或visual studio 不是问题。这是Windows 10的网络设置。我所要做的就是重置我的 Windows 10 计算机的网络设置。

搜索“设置”。

点击“网络和以太网”

点击“状态”

点击“网络重置”。

重新启动计算机。

【讨论】:

  • 找到了这个问题的新原因。每次我遇到这个问题时,我都会在提琴手软件中打开季节。一旦我关闭提琴手,问题就消失了。
猜你喜欢
  • 2020-11-25
  • 2017-06-12
  • 2021-06-07
  • 1970-01-01
  • 2017-08-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-12-17
相关资源
最近更新 更多