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 773 forks source link

actionViewIntent promise does not resolves when cannot open the file #492

Open luisespinoza opened 4 years ago

luisespinoza commented 4 years ago

rnFetchBlob: 0.11.2

When trying to open an unsupported file and Build.VERSION.SDK_INT >= 24, method actionViewIntent (RNFetchBlob.java) does not rejects the promise.

There is currently a PR with the necessary update.

onedevlad commented 4 years ago

Btw, is there any specific reason for opening files with FileProvider only for Build.VERSION.SDK_INT >= 24? Android 6 with SDK 23 seems to be able to handle FileProvider's content:// uri properly. The way it's implemented now fails for me on Android 6 (using file:// scheme on SDK < 24).

sadikyalcin commented 4 years ago

+1 Need this