This plugin is designed to support downloading files using Android DownloadManager.

Stuck on a Cordova issue?


Community Enterprise
ionic cordova plugin add integrator-cordova-plugin-downloader npm install @ionic-native/downloader
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/downloader

Supported Platforms

  • Android


import { Downloader } from '@ionic-native/downloader/ngx';

constructor(private downloader: Downloader) { }


   var request: DownloadRequest = {
          uri: YOUR_URI,
          title: 'MyDownload',
          description: '',
          mimeType: '',
          visibleInDownloadsUi: true,
          notificationVisibility: NotificationVisibility.VisibleNotifyCompleted,
          destinationInExternalFilesDir: {
              dirType: 'Downloads',
              subPath: 'MyFile.apk'
              .then((location: string) => console.log('File downloaded at:'+location))
              .catch((error: any) => console.error(error));