Skip to content
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

fix(android): register state receivers as REGISTER_EXPORTED #663 #667

Closed
wants to merge 1 commit into from

Conversation

peitschie
Copy link
Collaborator

I haven't got many devices to test this on currently, but this should be the code change needed here.

@pwespi
Copy link
Member

pwespi commented Jul 22, 2024

Thank you @peitschie for looking into this. However I cannot reproduce the problem described in #663. Do you have a case where that crash happened?

@pwespi
Copy link
Member

pwespi commented Jul 22, 2024

@allcontributors please add @peitschie for code and question

Copy link
Contributor

@pwespi

I've put up a pull request to add @peitschie! 🎉

@peitschie
Copy link
Collaborator Author

@pwespi huh... you are 100% correct here.

I'd seen this on at least one of the registerReceivers on another plugin, and assumed it applied more widely than it actually does.

There is a carved out exception for System Broadcasts when using a Context#registerReceiver call: https://developer.android.com/about/versions/14/behavior-changes-14#system-broadcasts which looks like it covers all the usages you have here.

This change isn't necessary at all. Sorry for the wasted time.

@peitschie peitschie closed this Jul 23, 2024
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