downloadManager()¶
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
| null
Null on iOS.