Skip to content

Commit

Permalink
V8.9.4 progress update interval and improvement in rescheduleKilledTasks
Browse files Browse the repository at this point in the history
* Modifies the interval between `TaskProgressUpdate` such that an update is sent at least once every 2.5 seconds if progress has been made, even if it less than 2% of the file size
* Improves `rescheduleKilledTasks` to also reschedule tasks marked as `waitingToRetry` but not registered as such
  • Loading branch information
781flyingdutchman committed Jan 25, 2025
1 parent ce3884b commit d4e4c2a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 8.9.4
* Modifies the interval between `TaskProgressUpdate` such that an update is sent at least once every 2.5 seconds if progress has been made, even if it less than 2% of the file size
* Improves `rescheduleKilledTasks` to also reschedule tasks marked as `waitingToRetry` but not registered as such

## 8.9.3
* Adds `start` which ensures the various start-up calls are executed in the correct order. Use this instead of calling `trackTasks`, `resumeFromBackground` and `rescheduleKilledTasks` separately
* Adds `rescheduleKilledTasks` which will compare enqueued/running tasks in the database with those active in the downloader, and reschedules those that have been killed by the user
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ By default, the downloader uses a modified version of the [localstore](https://p
As an alternative to LocalStore, use `SqlitePersistentStorage`, included in [background_downloader_sql](https://pub.dev/packages/background_downloader_sql), which supports SQLite storage and migration from Flutter Downloader.

## Notifications

Pub
On iOS and Android, for downloads and uploads, the downloader can generate notifications to keep the user informed of progress also when the app is in the background, and allow pause/resume and cancellation of an ongoing download from those notifications.

Configure notifications by calling `FileDownloader().configureNotification` and supply a
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: background_downloader
description: A multi-platform background file downloader and uploader. Define the task, enqueue and monitor progress

version: 8.9.3
version: 8.9.4
repository: https://github.com/781flyingdutchman/background_downloader

environment:
Expand Down

0 comments on commit d4e4c2a

Please sign in to comment.