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

Example project App crashes after launch. #193

Open
UmairSaqibBhutta opened this issue May 30, 2024 · 2 comments
Open

Example project App crashes after launch. #193

UmairSaqibBhutta opened this issue May 30, 2024 · 2 comments

Comments

@UmairSaqibBhutta
Copy link

When I run the example project on my android device then app crashes on launch and logs :
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

@UmairSaqibBhutta
Copy link
Author

@fabienrousseau @ThomasAunvik @fred441a @FritzMatthaeus any help please?

@euphoria3k
Copy link

you need to update the MainActivity.kt file in the example project. Update line 13 to be the following:

val pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_IMMUTABLE) // Updated line

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

No branches or pull requests

2 participants