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 14 compability #110

Merged
merged 2 commits into from
May 11, 2024
Merged

Conversation

Foxushka
Copy link
Contributor

Android 14 introduced some changes to intents:
https://developer.android.com/about/versions/14/behavior-changes-14#safer-intents

If you will build app that targets Android 14 (SDK 34) it will throw error on connection:
java.lang.IllegalArgumentException: Targeting U+ (version 34 and above) disallows creating or retrieving a PendingIntent with FLAG_MUTABLE, an implicit Intent within and without FLAG_NO_CREATE and FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT for security reasons. To retrieve an already existing PendingIntent, use FLAG_NO_CREATE, however, to create a new PendingIntent with an implicit Intent use FLAG_IMMUTABLE.

@altera2015 altera2015 merged commit c62717e into altera2015:master May 11, 2024
1 check passed
@altera2015
Copy link
Owner

@Foxushka Thanks for your contribution!

@jrzerr
Copy link

jrzerr commented Aug 19, 2024

Thank you, this solved the issue on Android for us, we're not using Flutter, but instead a native Android app

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.

3 participants