Not able to open downloaded file in Android
sharadkatre19 opened this issue ยท 7 comments
Not able to open the downloaded file in Android. In iOS it works perfectly fine.
Path for Android local file:
/storage/emulated/0/download/test.pdf
For download file I am using RNFetchBlob.fetch(....)
Thanks in Advance.
Have you finished this problem ? @sharadkatre19
@sharadkatre19 try to add
<root-path name="root" path="." />
in filepath.xml, it work for me :)
@sharadkatre19 try to add
<root-path name="root" path="." />
in filepath.xml, it work for me :)
It works ! Wow big thanks
hi, I don't have this file.... "filepath.xml" can someone tell me where should it be and how it should look like?...
hi, I don't have this file.... "filepath.xml" can someone tell me where should it be and how it should look like?...
I added it to res/xml/file_viewer_provider_paths.xml
. Still doesn't work for me
@sharadkatre19 try to add
<root-path name="root" path="." />
in filepath.xml, it work for me :)
@rizki-fr can you tell us where this file is situated exactly? I'm kind of stuck in this issue and if it works your way it'll be great to have this fixed.
@sharadkatre19 try to add
<root-path name="root" path="." />
in filepath.xml, it work for me :)It works ! Wow big thanks
Mind sharing the filepath.xml
path?
edit: I managed to solve the issue by switching to react-native-blob-util
and handle the new Android scoped storage (as documented here https://github.com/RonRadtke/react-native-blob-util#android-media-storage). After that, opening the resulting path succeed without problem. Hope it will help someone!