FireCubeStudios / SwiftBrowser

browse your websites
The Unlicense
41 stars 5 forks source link

downloading's support #50

Open FireCubeStudios opened 4 years ago

FireCubeStudios commented 4 years ago

i can use httpclient to do this.

JaiganeshKumaran commented 4 years ago

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.

FireCubeStudios commented 4 years ago

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.

JaiganeshKumaran commented 4 years ago

@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().

FireCubeStudios commented 4 years ago

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