kesha-antonov / react-native-background-downloader

About A library for React-Native to help you download large files on iOS and Android both in the foreground and most importantly in the background.
https://www.npmjs.com/package/@kesha-antonov/react-native-background-downloader
Other
26 stars 3 forks source link

[Feature Request] Configuration options for parallel downloads and cellular data #14

Open uzegonemad opened 1 month ago

uzegonemad commented 1 month ago

It would be great if we could set some configuration options for this library. Two that come to mind are the ability to set the number of parallel downloads, and choosing whether to download with Cellular data or just WiFi.

(As always, I can open a PR when time allows, but I like to post these in case anyone else gets there before me)


Edit: It looks like the Android Cellular Data portion is already supported in the form of the isAllowedOverMetered option. I wasn't paying enough attention to the documentation. Still, I think we should abstract this to a shared setting/function that can be used both on iOS and Android.