wymsee / cordova-imagePicker

Cordova Plugin For Multiple Image Selection
MIT License
407 stars 858 forks source link

App force closed on Android 6+ (need permission request on runtime) #209

Open mirulumam opened 7 years ago

mirulumam commented 7 years ago

i got this error when want to picked an image:

java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=7143, uid=10142 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

i added <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> manually into plugin.xml's plugin, then i re-build my project. But still force closed.

Then i open app info to grant Storage Permission manually. And no force close anymore

MayankLogiciel commented 7 years ago

+1 same issue. Also on iOS too.

mirulumam commented 7 years ago

@MayankLogiciel try this out: https://github.com/mirulumam/cordova-imagePicker but, for Android version only. Forked from @wymsee's imagepicker plugin

tested on Android N 7.1