Ver código fonte

Update README.md

wkh237 8 anos atrás
pai
commit
fd5900ca11
1 arquivos alterados com 9 adições e 3 exclusões
  1. 9
    3
      README.md

+ 9
- 3
README.md Ver arquivo

@@ -48,9 +48,11 @@ Link package using [rnpm](https://github.com/rnpm/rnpm)
48 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 57
 ```diff
56 58
 <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
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 76
 ## Guide
71 77
 
72 78
 ```js
@@ -325,7 +331,7 @@ If mime is null or undefined, then the mime type will be inferred from the file
325 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 336
 ```js
331 337
 RNFetchBlob.config({