fl_downloader 2.0.1+1 copy "fl_downloader: ^2.0.1+1" to clipboard
fl_downloader: ^2.0.1+1 copied to clipboard

A plugin to download files using the native capabilities. URLSession on iOS, DownloadManager on Android and BITS on Windows.

fl_downloader #

Pub Version

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.

iOS Configuration #

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/>

Android Configuration #

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

    [...]
}

Windows Configuration #

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

11
likes
140
pub points
81%
popularity

Publisher

verified publisherinceptusp.dev

A plugin to download files using the native capabilities. URLSession on iOS, DownloadManager on Android and BITS on Windows.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on fl_downloader