Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/inceptusp/fl_downloader
- Owner: inceptusp
- License: bsd-3-clause
- Created: 2022-05-12T16:26:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T13:13:16.000Z (9 months ago)
- Last Synced: 2024-04-30T14:33:06.449Z (9 months ago)
- Topics: downloadmanager, flutter, flutter-plugin, plugin
- Language: C++
- Homepage:
- Size: 242 KB
- Stars: 4
- Watchers: 1
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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
LSSupportsOpeningDocumentsInPlaceUIFileSharingEnabled
```
## 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)