Skip to content

Conversation

shavlegkakulia
Copy link

@shavlegkakulia shavlegkakulia commented Aug 9, 2024

Register BroadcastReceiver for ACTION_DOWNLOAD_COMPLETE with version-based handling

  • Added conditional logic to register the BroadcastReceiver for DownloadManager.ACTION_DOWNLOAD_COMPLETE.
  • For Android SDK 34 and above (and target SDK 34 and above), included the Context.RECEIVER_EXPORTED flag to comply with new permissions requirements.
  • For Android versions below SDK 34, registered the receiver without the RECEIVER_EXPORTED flag to maintain compatibility.
Screenshot 2024-08-09 at 15 23 52

on target 34 or upper there was crash. in this file "RnFetchBlobReq" 199 line there added new argument in "registerReceiver" if target is more or equal with 34.
@mkhotib20
Copy link

hello @joltup do you still maintaining this repo? it ned to be merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants