react native rn-fetch-blob cannot read storage of android 10

1.1k views Asked by At
`const dirs_read = RNFetchBlob.fs.dirs.SDCardDir + '/Whatsapp/Media/.Statuses';` 

The above code is working properly on android 9 and lower but, can not read the status of android 10.

1

There are 1 answers

1
Ruli On

I guess the problem is in privacy settings, according to SDCardDir in path you don't access internal but extrernal storage where you need to add READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, and MANAGE_EXTERNAL_STORAGE permissions. You can't access folder of another apps in internal storage at all (see more).