|
@@ -217,8 +217,21 @@ You can find more informations about this issue in #46.
|
217
|
217
|
|
218
|
218
|
- Uses React Native's own [`PermissionsAndroid` JS API](http://facebook.github.io/react-native/docs/permissionsandroid.html).
|
219
|
219
|
- All required permissions also need to be included in the `AndroidManifest.xml` file before they can be requested. Otherwise `request()` will immediately return `denied`.
|
220
|
|
-- Permissions are automatically accepted for **targetSdkVersion < 23** but you can still use `check()` to check if the user has disabled them from Settings.
|
221
|
220
|
- You can request write access to any of these types by also including the appropriate write permission in the `AndroidManifest.xml` file. Read more [here](https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous).
|
|
221
|
+- Permissions are automatically accepted for **targetSdkVersion < 23** but you can still use `check()` to check if the user has disabled them from Settings.
|
|
222
|
+
|
|
223
|
+You might need to elevate the **targetSdkVersion** version in your `build.gradle`:
|
|
224
|
+
|
|
225
|
+```groovy
|
|
226
|
+android {
|
|
227
|
+ compileSdkVersion 23 // ← set at least 23
|
|
228
|
+ buildToolsVersion "23.0.1" // ← set at least 23.0.0
|
|
229
|
+
|
|
230
|
+ defaultConfig {
|
|
231
|
+ minSdkVersion 16
|
|
232
|
+ targetSdkVersion 23 // ← set at least 23
|
|
233
|
+ // ...
|
|
234
|
+```
|
222
|
235
|
|
223
|
236
|
## Troubleshooting
|
224
|
237
|
|