SwiftBrowser icon indicating copy to clipboard operation
SwiftBrowser copied to clipboard

downloading's support

Open FireCubeStudios opened this issue 5 years ago • 4 comments

i can use httpclient to do this.

FireCubeStudios avatar Aug 05 '20 12:08 FireCubeStudios

I recommend using background downloader rather than HTTP client. Background downloads runs even after the browser is closed so users will not loose any data.

jaigak avatar Aug 05 '20 12:08 jaigak

I tried to use background downloader but it never worked for me on my pc. I never figured out what caused the issue but nothing was being downloaded. Also because I had a launch 2020 deadline and it spent several days on it and it never worked.

I even tried some third party downloaders and they never worked. so far httpclient has been working. this might also just be a issue with my pc I dont know.

FireCubeStudios avatar Aug 05 '20 12:08 FireCubeStudios

@FireCubeStudios You don't understand how Background Downloader works. When you download a file, it doesn't actually download the file. Instead it add the download to the download list. You need to manually start it. The list is shared between all application and the download is performed by Windows. You should call StartAsync() method to actually start it. By default it only downloads the file after other downloads are completed (eg. Windows updates, OneDrive, other app downloads). If you want to immediately download set the download priority to high and then call StartAsync().

jaigak avatar Aug 05 '20 14:08 jaigak

oh i didnt know that i will try using background downlaoder again then. thanks for telling me

FireCubeStudios avatar Aug 05 '20 15:08 FireCubeStudios