rn-fetch-blob icon indicating copy to clipboard operation
rn-fetch-blob copied to clipboard

[Android] One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED

Open IamFahimBjit opened this issue 1 year ago • 0 comments

  • Fix the issue for RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTE for sdk version >= 34 Changed the code here:

rn-fetch-blob/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

As per the doc

if (Build.VERSION.SDK_INT >= 34 && appCtx.getApplicationInfo().targetSdkVersion >= 34) { appCtx.registerReceiver(this, new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE), Context.RECEIVER_EXPORTED); } else { appCtx.registerReceiver(this, new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); }

IamFahimBjit avatar Jun 24 '24 08:06 IamFahimBjit