fl_downloader 1.2.0 copy "fl_downloader: ^1.2.0" to clipboard
fl_downloader: ^1.2.0 copied to clipboard

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

fl_downloader #

Pub Version

A plugin to download files using the native capabilities.

On Android it uses the DownloadManager system service to download files to user's Download 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 compileSdkVersion is the latest Android SDK, eg.:

android {
    compileSdkVersion 33

    [...]
}
11
likes
140
pub points
83%
popularity

Publisher

verified publisherinceptusp.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on fl_downloader