# downloadManager()

```ts
function downloadManager(options?): 
  | HookExtension
  | null;
```

**`Android`**

Saves the page's `http:` and `https:` downloads into the device's Downloads folder with Android's Download Manager, whose notification shows the progress, and shows a toast: react-native-webview's Android downloads, with its `downloadingMessage`.

It takes them before `onDownload` does. `onDownload`, or else the core's external open, still gets `blob:` and `data:` downloads, and one the Download Manager refuses, as when it is disabled.

The Download Manager fetches the file again, with the page's cookies and user agent: a download that needs a POST or other headers fails.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `options?` | { `downloadingMessage?`: `string`; } | \- |
| `options.downloadingMessage?` | `string` | The toast's text. |

**Returns**

| [`HookExtension`](<https://rasmuskard.github.io/react-native-minimal-webview/typescript/react-native-minimal-webview/type-aliases/HookExtension/index.md>) | `null`

Null on iOS.
