Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RNFetchBlob.android.actionViewIntent does not working on android 11

I have updated my Android's targetSdkVersion to 30, and I realized that the actionViewIntent function does not work on Android 11.

There is no error thrown. So I can't able to debug.

Below is my code:

RNFetchBlob.android.actionViewIntent(filePath, mimeType);

Has anyone else had this issue after updating? Please assist me!!

Thanks in advance.

like image 844
Rajkumar J Avatar asked Apr 25 '26 04:04

Rajkumar J


1 Answers

I fixed this issue by adding "queries" in AndroidManifest.xml

<queries>
    <intent>
        <action android:name="android.intent.action.VIEW" />
        <data android:mimeType="*/*" />
    </intent>
</queries>

<application ....
like image 192
Rajkumar J Avatar answered Apr 26 '26 19:04

Rajkumar J



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!