Skip to content

Commit 26ce782

Browse files
YingFeiZhouYingFeiZhou
authored andcommitted
Revert "fix: 更新文档"
This reverts commit f27d8d7.
1 parent f27d8d7 commit 26ce782

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -631,22 +631,13 @@ This is a new feature added in `0.9.0` if you're going to open a file path using
631631

632632
Download and install an APK programmatically
633633

634-
Note:
635-
be sure to specify the path, do not use the default path, because the permission problem causes the installation to fail, parsing the package fails
636-
637-
default path: `/data/data/com.android.providers.downloads/cache/xxx.apk` // Will cause parsing of the package to fail,Unable to install APK
638-
639634
```js
640635

641636
const android = ReactNativeBlobUtil.android
642-
const dirs = ReactNativeBlobUtil.fs.dirs;
643-
const apkUrl = "http://www.example.com/awesome.apk";
644-
const fileName = url.substring(url.lastIndexOf('/') + 1);
645637

646638
ReactNativeBlobUtil.config({
647639
addAndroidDownloads: {
648640
useDownloadManager: true,
649-
path: `${dirs.DownloadDir}/${fileName}`, // <-- Must specify
650641
title: 'awesome.apk',
651642
description: 'An APK that will be installed',
652643
mime: 'application/vnd.android.package-archive',

0 commit comments

Comments
 (0)