Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: targetSdk 34 registerBroadcastReceiver needs additional flags #10585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

edusperoni
Copy link
Contributor

PR Checklist

What is the current behavior?

When targetting API 34, calling registerBroadcastReceiver throws an error due to https://developer.android.com/about/versions/14/behavior-changes-14#runtime-receivers-exported

What is the new behavior?

Error no longer thrown and we mark the broadcast as exported by default. The user can opt to make it not exported by passing the correct flag.

@cla-bot cla-bot bot added the cla: yes label Jul 12, 2024
@NathanWalker NathanWalker merged commit 4c70596 into main Jul 12, 2024
4 checks passed
@NathanWalker NathanWalker deleted the fix/broadcast-receiver-flags branch July 12, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants