Skip to content

why my app for ios download complete the size is 0 byte #38

@ghost

Description

const fileTransfer = new BackgroundTransfer.BackgroundDownloader();
console.log(item.fileUrl+"===="+targetPath)
File.createFile(targetPath,filename,false).then(entry=>{

      let download = fileTransfer.createDownload(item.fileUrl, entry);
      download.startAsync().then((entry) => {
        self.addToDownloaded(item);
        resolve(item);
        item['filePath'] = targetPath;
        // VideoUtils.playVideo(targetPath);
        // self.events.publish('download:done');
      }, (error) => {
        reject(error);
        // self.events.publish('download:error');
      }, (progressEvent) => {
        this.ngZone.run(() => {
          if (!!progressEvent) {
            onProgress(progressEvent);
          }
        });
      });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions