Browse Source

Update README.md

wkh237 8 years ago
parent
commit
fd5900ca11
1 changed files with 9 additions and 3 deletions
  1. 9
    3
      README.md

+ 9
- 3
README.md View File

48
 rnpm link
48
 rnpm link
49
 ```
49
 ```
50
 
50
 
51
-**Android Access Permission to External storage (Optional)**
51
+**Grant Permission to External storage for Android 5.0 or lower**
52
 
52
 
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`.
54
 
56
 
55
 ```diff
57
 ```diff
56
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
58
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
67
 
69
 
68
 ```
70
 ```
69
 
71
 
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
+
70
 ## Guide
76
 ## Guide
71
 
77
 
72
 ```js
78
 ```js
325
 <img src="img/android-notification2.png" width="256">
331
 <img src="img/android-notification2.png" width="256">
326
 
332
 
327
 
333
 
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`.
329
 
335
 
330
 ```js
336
 ```js
331
 RNFetchBlob.config({
337
 RNFetchBlob.config({