Background download support
The goal here is to initiate a long running http download. From AS3 you will be able
to request that a URL be downloaded to a particular destination file and the ANE will
perform the download in the background.
This will utilise the system download managers which may present a UI to the user
on particular OS versions.
iOS:
- use a NSURLSessionDownloadTask to download in the background
- Will work in the background and foreground but not if the application
is terminated (due to an AIR limitation of launching into the
background)
- Extension will handle all application delegate callbacks, download
progress and notifications, moving file to specified location on
completion and comply with all Apple’s best practice guidelines.
Android:
- use the DownloadManager
- Utilise the system download service
- May require additions to the application manifest
- May require runtime permission request to access storage
https://developer.android.com/reference/android/app/DownloadManager.html
We’ve done some initial investigation into this extension due to some recent requests.
If there’s more interest we will look into adding it to the development schedule.
-
saglam.mehmet commented
Hello, any news about that?
-
Phil Whitelow commented
Yeah this sounds good.
-
cgascons commented
Totally looking forward to this, thanks!
-
Jens Koblitz commented
i would also like to see that for e.g. downloading news etc.
-
Julien commented
I highly support this idea (mostly the download part).
There's already an open source ANE for the iOS part (I didn't test it yet) :
https://github.com/ncreated/BackgroundTransfer-ANE
And there's a similar feature on Android : the DownloadManager
https://developer.android.com/reference/android/app/DownloadManager.html
My app let the user download large quantities of files (between 20-100 files, for 250-500MB), and now I can't download the files in the background so the user has to keep the app on screen, that's not great :(
I'd love to pay for a quality ANE from you to let the download be done in the background.