flutter_downloader
flutter_downloader copied to clipboard
URLSession:task:didCompleteWithError: i IOS
I also encountered this issue, with flutter_downloader version 1.6.0. Here's the error log
startBackgroundIsolate
database path: /var/containers/Bundle/Application/8089EA16-D72F-44FF-BD7F-8E013A4D3A5A/Runner.app/Frameworks/flutter_downloader.framework/FlutterDownloaderDatabase.bundle/download_tasks.sql
MAXIMUM_CONCURRENT_TASKS = 3
init NSURLSession with id: id.xxx.transporterApp.download.background.1618389909.033087
AllFilesDownloadedMessage: All files have been downloaded
Absolute savedDir path: /var/mobile/Containers/Data/Application/FC161A69-8D7A-4229-9266-97F3B25A1BC9/Documents/Download
execute query: INSERT INTO task (task_id,url,status,progress,file_name,saved_dir,headers,resumable,show_notification,open_file_from_notification,time_created) VALUES ("id.xxx.transporterApp.download.background.1618389904.988880.1","https://xxx.s3.ap-southeast-1.amazonaws.com/docs/pdf/2021/4/12/a09dd254-fc16-4d6b-b945-0d495b32545e.pdf",1,0,"hello_test2.pdf","Download","",0,1,1,1618389933200)
open DB successfully
Query was executed successfully. Affected rows = 1
flutter: Background Isolate Callback: task (id.xxx.transporterApp.download.background.1618389904.988880.1) is in status (DownloadTaskStatus(1)) and process (0)
execute query: UPDATE task SET status=2, progress=100 WHERE task_id="id.xxx.transporterApp.download.background.1618389904.988880.1"
open DB successfully
flutter: Background Isolate Callback: task (id.xxx.transporterApp.download.background.1618389904.988880.1) is in status (DownloadTaskStatus(2)) and process (100)
Query was executed successfully. Affected rows = 1
URLSession:downloadTask:didFinishDownloadingToURL:
SuggestedFileName: a09dd254-fc16-4d6b-b945-0d495b32545e.pdf
savedDir: /var/mobile/Containers/Data/Application/FC161A69-8D7A-4229-9266-97F3B25A1BC9/Documents/Download
filename: hello_test2.pdf
execute query: UPDATE task SET status=3, progress=100 WHERE task_id="id.xxx.transporterApp.download.background.1618389904.988880.1"
flutter: Background Isolate Callback: task (id.xxx.transporterApp.download.background.1618389904.988880.1) is in status (DownloadTaskStatus(3)) and process (100)
open DB successfully
Query was executed successfully. Affected rows = 1
URLSession:task:didCompleteWithError:
HTTP status code: 200
any solutions yet.
Same issue here. Any update?
same issue
ios: 14.8 flutter_downloader: 1.7.0
@gperez-nolatech Nobody is maintaining this plugin better to move to other plugins.
I have a similar issue, has anybody figured it out yet?
I have the same issue with the 1.7.1 release version implementing this package on iOS 15.1
same issue
According to the doc, if the error object is NULL then that means the download was successful
flutter_downloader: ^1.10.2 Same issue any idea? working fine for android but creating issue in IOS