Saad Khan
Dec 13, 2023

For android, the following code should work,

```

ReactNativeBlobUtil.config({

fileCache: true,

appendExt: 'pdf',

path: `${dirs.DocumentDir}/${fileName}`,

addAndroidDownloads: {

useDownloadManager: true,

notification: true,

title: fileName,

description: 'File downloaded by download manager.',

mime: 'application/pdf',

},

})```

The download manager should be responsible for downloading the file.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Saad Khan
Saad Khan

Written by Saad Khan

Mobile App Dev (Mainly focused on React Native)

Responses (1)

Write a response