joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.81k stars 772 forks source link

added exception with msf scheme from android 10 for document uri #539

Closed samuelnp closed 1 year ago

samuelnp commented 4 years ago

Crashes detected in PathResolver using API29 with new type of uri "content://com.android.providers.downloads.documents/document/msf:24" resulting on id like "msf:24" instead of number. I don't know if my patch is the best solution but could fix temporarily the next error: java.lang.NumberFormatException in Long.java:594 java.lang.Long.parseLong

R4DIC4L commented 3 years ago

I am experiencing a problem with both RNFetchBlob.android.actionViewIntent and RNFetchBlob.fs.stat on files using the URI as described above (files are selected from the Recent category folder in android picker), therefore am unable to view the file from RN app. Will try your solution to see if it works.