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 12 Target-SDK 31+ issues #1181

Closed

Conversation

ygpedroso
Copy link

  • Since Android 12+ it is required to explicitly set the
    android:exported property when the corresponding component
    has an intent filter defined.
  • Fixes the following Android 12+ issue:
    java.lang.IllegalArgumentException: com.app-xxx: Targeting S+
    (version 31 and above) requires that one of FLAG_IMMUTABLE or
    FLAG_MUTABLE be specified when creating a PendingIntent.
    Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE
    if some functionality depends on the PendingIntent being mutable,
    e.g. if it needs to be used with inline replies or bubbles.

- Since Android 12+ it is required to explicitly set the
android:exported property when the corresponding component
 has an intent filter defined.
- Fixes the following Android 12+ issue:
java.lang.IllegalArgumentException: com.app-xxx: Targeting S+
(version 31 and above) requires that one of FLAG_IMMUTABLE or
FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE
if some functionality depends on the PendingIntent being mutable,
e.g. if it needs to be used with inline replies or bubbles.
@ygpedroso
Copy link
Author

Duplicate: #1182

@ygpedroso ygpedroso closed this Aug 12, 2022
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.

1 participant