-
Notifications
You must be signed in to change notification settings - Fork 750
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 crash on android 14 #647
base: master
Are you sure you want to change the base?
Conversation
It would be really useful to have a release with this PR included 🙏 |
@@ -177,7 +177,7 @@ public synchronized void register() throws IllegalStateException { | |||
// avoid acquiring intent data failed in receiver on Android12 | |||
// when using PendingIntent.FLAG_IMMUTABLE | |||
// because it means Intent can't be modified anywhere -- jiangdg/20220929 | |||
int PENDING_FLAG_IMMUTABLE = 1<<25; | |||
int PENDING_FLAG_IMMUTABLE = 0x04000000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
@jiangdongguo can you release a new version with this fix? Without it its impossible to use on Android 14. |
Gentle ping :-) |
when will this PR is going to merge any idea? |
@joaompneves any update on the new release fix for android 14? |
Hi @joaompneves, this is a great change! How can I use this version on another project while this isn't merged? |
You need to build the project. |
In Android 14, registerReceiver fails because its now missing and extra flag. This PR fixes that behavior.
Tested on an Android 14 device.