Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/inceptusp/fl_downloader

⤵️ A plugin to download files using the native capabilities.
https://github.com/inceptusp/fl_downloader

downloadmanager flutter flutter-plugin plugin

Last synced: 2 months ago
JSON representation

⤵️ A plugin to download files using the native capabilities.

Awesome Lists containing this project

README

        

# fl_downloader
[![Pub Version](https://img.shields.io/pub/v/fl_downloader)](https://pub.dev/packages/fl_downloader)

A plugin to download files using the native capabilities.

On Android it uses the [DownloadManager](https://developer.android.com/reference/android/app/DownloadManager) system service and, on Windows, it uses [BITS](https://learn.microsoft.com/en-us/windows/win32/bits/background-intelligent-transfer-service-portal) to download files to user's **Downloads** folder and, on iOS, it uses the [URLSession](https://developer.apple.com/documentation/foundation/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:

``` xml
LSSupportsOpeningDocumentsInPlace

UIFileSharingEnabled

```

## 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.:
```groovy
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](https://learn.microsoft.com/en-us/windows/win32/bits/about-bits)

[HTTP Requirements for BITS Downloads](https://learn.microsoft.com/en-us/windows/win32/bits/http-requirements-for-bits-downloads)

[BITSAdmin tool](https://learn.microsoft.com/en-us/windows/win32/bits/bitsadmin-tool)