flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

Cannot query downloaded task in IOS after upgrade to flutter_downloader: ^1.10.0

Open basnetjiten opened this issue 2 years ago • 4 comments

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');

basnetjiten avatar Jan 04 '23 08:01 basnetjiten

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)

umutyusuf avatar Jan 19 '23 11:01 umutyusuf

the problem happen because download_tasks.db don't create task table

SpaceXM avatar Jan 23 '23 16:01 SpaceXM

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.

781flyingdutchman avatar Jan 24 '23 01:01 781flyingdutchman

Hi, When will this update be available?

rodrigorafaeldamaceno avatar Feb 07 '23 18:02 rodrigorafaeldamaceno