A plugin to download files using the native capabilities.
On Android it uses the DownloadManager system service and, on Windows, it uses BITS to download files to user's Downloads folder and, on iOS, it uses the URLSession to download files to the App Documents folder.
If you don`t want to show downloaded files to the user on the Files app, there is no need for special configuration.
If you want to show downloaded files to the user on the Files app, add the following lines to your info.plist file:
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
<key>UIFileSharingEnabled</key>
<true/>
There is no need for special configuration on Android 10+.
If your app supports Android 9 (API 28) or bellow it is mandatory to call requestPermission()
before download()
and check the permission status.
NOTE: This plugins expects that compileSdk
is the latest Android SDK, eg.:
android {
compileSdk 34
[...]
}
There is no need for special configuration on Windows.
NOTE: The following pages are important to know the limitations and to test the use of BITS:
About BITS
HTTP Requirements for BITS Downloads
BITSAdmin tool