flutter_downloader
flutter_downloader copied to clipboard
Cannot query downloaded task in IOS after upgrade to flutter_downloader: ^1.10.0
It was working fine until I upgrade the plugin from 1.9.1 to 1.10.0
final completedTask = await FlutterDownloader.loadTasksWithRawQuery( query: 'SELECT * FROM task WHERE status = 3');
I'm facing the same issue here. the issue does not exist on android. The problematic part is in downloader.dart mapping part.
here
return DownloadTask(
taskId: item['task_id'] as String,
status: DownloadTaskStatus(item['status'] as int),
progress: item['progress'] as int,
url: item['url'] as String,
filename: item['file_name'] as String?,
savedDir: item['saved_dir'] as String,
timeCreated: item['time_created'] as int,
allowCellular: item['allow_cellular'] as bool,
);
item['allow_cellular'] returns null even though I enqueued the download task with the following code
await FlutterDownloader.enqueue(
url: downloadingProcess.url!,
openFileFromNotification: false,
savedDir: downloadDestinationDirPath,
showNotification: true,
fileName: downloadedZipName,
allowCellular: true)
the problem happen because download_tasks.db don't create task table
Hi, I've found the flutter_downloader to be comprehensive, but also a bit buggy, so I wrote a much simpler download package background_downloader. Have a look and see if it serves your needs.
Hi, When will this update be available?