We have an optional requirement that when downloading a file, the download process should continue regardless of the app is paused or not.
Formally I used WebRequest within System, but due to the cerification issue I cannot resolve, and the availbility of UnityWebRequest, I use UnityWebRequest and DownloadHandlerScript instead.
But The problem is, the UnityWebRequest will also pause when app is paused.
How to continue the download even when the app is paused?
u talking about async ops for dl’ing?
It depends on the platform and exact requirements.
If you are on Android, iOS or UWP, the best option is to use our BackgroundDownload plugin: GitHub - Unity-Technologies/BackgroundDownload: Plugins for mobile platforms to enable file downloads in background
Note, that the latest master version is in progress to be turned into package. For now you’d have to manually put into your Packages folder.
On other platforms the best option is to use DownloadHandlerFile, that should keep doing an actual download even when app is suspended (granted, it will only become “done” when app is resumed).