EkoLabs / react-native-background-downloader

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.
Other
278 stars 122 forks source link

Save file in android app internal storage #67

Open maheshshrigod opened 4 years ago

maheshshrigod commented 4 years ago

For security reasons I want to store the downloaded file in app internal storage. Currently all the file are visible in external storage

dayaki commented 4 years ago

Same here, any luck?

edferreira commented 4 years ago

I'm doing it like

path = `${RNBackgroundDownloader.directories.documents}/${fileName}`
dayaki commented 4 years ago

@edferreira it is still accessible by the user.

dayaki commented 4 years ago

I solved it by using rn-fetch-blob package to get access the internal storage.

CodeDruid13 commented 3 years ago

I solved it by using rn-fetch-blob package to get access the internal storage.

That library does not have background access, unless you were to able to. Would you mind showing us how you did it? Am able to download files but not in the background