Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49235

Ionic downloader return true when download is finished

$
0
0

Hello guys. i use downloader for my apk. mys code is:

var req: DownloadRequest = {
                  uri: 'https://xyz.com',
                  title: 'TryMe' ,
                  description: 'TryMe',
                  mimeType: "video/mp4",
                  visibleInDownloadsUi: true,
                  notificationVisibility: NotificationVisibility.VisibleNotifyCompleted,
                  destinationInExternalFilesDir: {
                    dirType: 'Downloads',
                    subPath: 'MyFile.apk',
                  }
                };
this.dwn.download(req)
      .then((location: string) => {
        alert(location)
      }).catch((err) => {
        alert("DWN ser Err 42: " + JSON.stringify(err))
        return "";
      })

i want to stop another functions when file is downloading. The program and functions are continue when downloading is finish. how can i do it? 

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>