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.
- 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
- 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.
- use the DownloadManager
- Utilise the system download service
- May require additions to the application manifest
- May require runtime permission request to access storage
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.
Hello, any news about that?
Phil Whitelow commented
Yeah this sounds good.
Totally looking forward to this, thanks!
Jens Koblitz commented
i would also like to see that for e.g. downloading news etc.
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) :
And there's a similar feature on Android : the DownloadManager
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.