Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 找不到本机文件开启器2错误类_Ionic Framework_Ionic2_Cordova Plugins_Ionic3_Ionic Native - Fatal编程技术网

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;
}