Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit fd5900c

Browse files
committed
Update README.md
1 parent 1d206e7 commit fd5900c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ Link package using [rnpm](https://github.com/rnpm/rnpm)
4848
rnpm link
4949
```
5050

51-
**Android Access Permission to External storage (Optional)**
51+
**Grant Permission to External storage for Android 5.0 or lower**
5252

53-
If you're going to access external storage (say, SD card storage), you might have to add the following line to `AndroidManifetst.xml`.
53+
Mechanism about granting Android permissions has slightly different since Android 6.0 released, please refer to [Officail Document](https://developer.android.com/training/permissions/requesting.html).
54+
55+
If you're going to access external storage (say, SD card storage) for `Android 5.0` (or lower) devices, you might have to add the following line to `AndroidManifetst.xml`.
5456

5557
```diff
5658
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
@@ -67,6 +69,10 @@ If you're going to access external storage (say, SD card storage), you might hav
6769

6870
```
6971

72+
**Grant Access Permission for Android 6.0**
73+
74+
Beginning in Android 6.0 (API level 23), users grant permissions to apps while the app is running, not when they install the app. So adding permissions in `AndroidManifest.xml` won't work in Android 6.0 devices. To grant permissions in runtime, you might use modules like [react-native-android-permissions](https://github.com/lucasferreira/react-native-android-permissions).
75+
7076
## Guide
7177

7278
```js
@@ -325,7 +331,7 @@ If mime is null or undefined, then the mime type will be inferred from the file
325331
<img src="img/android-notification2.png" width="256">
326332

327333

328-
If you want to download notification or make the stored file visible like the above. You have to add some options to `config`.
334+
If you want to display a notification when file's completely download to storage (as the above), or make the downloaded file visible in "Downloads" app. You have to add some options to `config`.
329335

330336
```js
331337
RNFetchBlob.config({

0 commit comments

Comments
 (0)