fluttercommunity / fluttercommunity/flutter_downloader

sometime can't pause or cancel or remove the downloading file

Open
#677 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
940
Forks
561
Avg merge
1h 18m
Merged PRs (30d)
1

Description

**Describe the bug**

Click pause button and execute the FlutterDownloader.pause(taskId: task.taskId!); Please see the below log. Log say that record is updated but status is still 2. It is not alway happen.

pause task with id: org.thitsarparami.app.download.background.1655904433.040599.1
execute query: SELECT * FROM task
open DB successfully
Load tasks successfully
{
"file_name" = "cl1b0zknh02krt0v7cj3ze8r0.mp3";
headers = "";
"open_file_from_notification" = 0;
progress = 49;
resumable = 0;
"saved_dir" = "/var/mobile/Containers/Data/Application/7F2B048F-541B-4F60-97B5-6B834140D7FB/Documents/mp3";
"show_notification" = 1;
status = 2;
"task_id" = "org.thitsarparami.app.download.background.1655904433.040599.1";
"time_created" = 1655904833315;
url = "https://fileserver.org/storage/song/cl1b0zkn902jdt0v702enhgzz/cl1b0zkng02kqt0v7g0crh521/cl1b0zknh02krt0v7cj3ze8r0.mp3";
}

**To Reproduce**

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**

**Screenshots**

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Device information:**

- Device: [e.g. iPhone 13]
- OS: [e.g. iOS 15.4]
- plugin version [e.g. v1.8.0]

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.