In androidmanifest.xml I have:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="23" />
In build.gradle I have:
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
multiDexEnabled true
applicationId "test"
minSdkVersion 16
targetSdkVersion 23
If i try to call CameraRoll.getPhotos() to get library photos I get error:
Could not get photos: need READ_EXTERNAL_STORAGE permission
at createErrorFromErrorData
I am trying to run app on real device with android 6 and 7 on it, and I am trying to make it work like in IOS - when call getPhotos() to see permission request dialog.
What is wrong here?