Ionic framework 找不到本机文件开启器2错误类
尝试打开未找到的文件Ionic framework 找不到本机文件开启器2错误类,ionic-framework,ionic2,cordova-plugins,ionic3,ionic-native,Ionic Framework,Ionic2,Cordova Plugins,Ionic3,Ionic Native,尝试打开未找到的文件类时收到错误 .ts this.entry.nativeURL是使用文件传输的下载结果 nativeURL:file:///storage/emulated/0/Download/someFile.docx this.fileTransfer.download(url, this.storageDirectory + this.attachment.fileName, trustAllHosts).then((entry) => { console.log('entr
类时收到错误
.ts
this.entry.nativeURL
是使用文件传输的下载结果
nativeURL:file:///storage/emulated/0/Download/someFile.docx
this.fileTransfer.download(url, this.storageDirectory + this.attachment.fileName, trustAllHosts).then((entry) => {
console.log('entry: ', entry);
this.entry = entry;
}
this.attachment.mime:application/vnd.openxmlformats of icedocument.wordprocessingml.document
我还尝试了一个pdf文件的
application/pdf
,但没有成功它正在工作。。。问题是在运行应用程序live时--livereload它的工作。。。问题在于运行应用程序live--livereload
this.fileTransfer.download(url, this.storageDirectory + this.attachment.fileName, trustAllHosts).then((entry) => {
console.log('entry: ', entry);
this.entry = entry;
}