You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.
However, when calling task.stop the download is not stopped. When giving a console.log in task.stop I get undefined.
I also tried to list downloads in progress and outline the task I wanted to stop:
async function stopDownload(download);
let lostTasks = await RNBackgroundDownloader.checkForExistingDownloads ();
for (let task of lostTasks) {
if (task.id == download.id) {
task.stop
}
};
With that I get the following error:
The text was updated successfully, but these errors were encountered:
Hello, I need help to stop a download.
I tried as follows:
However, when calling task.stop the download is not stopped. When giving a console.log in task.stop I get undefined.
I also tried to list downloads in progress and outline the task I wanted to stop:
With that I get the following error:
The text was updated successfully, but these errors were encountered: