Wraptime / react-native-get-real-path

Convert file uri to real path
MIT License
57 stars 49 forks source link

Permission denial READ_EXTERNAL_STORAGE #21

Closed hoanghungbk93 closed 4 years ago

hoanghungbk93 commented 4 years ago

when getContentResolver is called, through exception : Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=18708, uid=10127 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission(). Although I try to add : "uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" " to manifest but exception still the same.

hoanghungbk93 commented 4 years ago

I have resolved issue by request permission before get path. Thank all