cordova-plugin-file-downloader icon indicating copy to clipboard operation
cordova-plugin-file-downloader copied to clipboard

How can I get download percentage?

Open kid1412621 opened this issue 6 years ago • 3 comments

I've tried this :

document.addEventListener('DOWNLOADER_downloadProgress', function(event) {
        let data = event.data
        console.log('processing', data)
})

But I got nothing in console, could you give a demo?

kid1412621 avatar Sep 27 '18 03:09 kid1412621

I've get it working by using this:

document.addEventListener('DOWNLOADER_downloadProgress', (event: any) => {
  let data = event.data;
  console.log(data);
})

also I've added all my event listeners in component constructor.

Naseer-Ahmad avatar Mar 04 '19 10:03 Naseer-Ahmad

@kid1412621 did you get the download progress even i am getting the same problem

Nousheenk avatar Mar 29 '19 06:03 Nousheenk

Sorry I forget. Our team drop off Cordova.

On Fri, Mar 29, 2019, 14:19 Nousheenk [email protected] wrote:

@kid1412621 https://github.com/kid1412621 did you get the download progress even i am getting the same problem

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mramonlopez/cordova-plugin-file-downloader/issues/6#issuecomment-477882429, or mute the thread https://github.com/notifications/unsubscribe-auth/AZD4phXh0-CMUSivZgTI1Xf26reg3i68ks5vbbBcgaJpZM4W72u0 .

kid1412621 avatar Mar 30 '19 07:03 kid1412621