-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Exception on Android 12 / S #634
Comments
Hey @harry248 |
@harry248 We have just released 3.5.0 with the fix for the issue you reported. Feel free to check it out and let us know how it is going. https://github.com/ChuckerTeam/chucker/releases/tag/3.5.0 |
Hi @vbuberen Just wanted to let you know that I believe one pending intent was missed here: 515b3f0#diff-c5132152b8a29a93267e2854e720cc1c911da352603166ab6b8c8a64caba9059R60 specifically this line chucker/library/src/main/java/com/chuckerteam/chucker/internal/support/NotificationHelper.kt Line 60 in 515b3f0
I noticed it doesn't exist in the latest snapshot version and am trying the snapshot out but having trouble using it in my project due to it being a major release with more changes |
Thank you so much for the fast fix! |
Would it be posibile to get 3.5.1 promoted from stage to prod I noticed the steps just have it go to stage: https://github.com/ChuckerTeam/chucker/runs/3107658830?check_suite_focus=true and its not yet showing in maven central: https://search.maven.org/artifact/com.github.chuckerteam.chucker/library |
Yeah, it looks like we forgot to promote the release. |
✍️ Describe the bug
On Android 12 chucker causes a crash due to a missing intent flag.
💣 Steps to reproduce
Bump compile/target sdk to Android S and try any app using chucker.
🔧 Expected behavior
Chucker doesn't crash the app.
📱 Tech info
📄 Additional context
java.lang.IllegalArgumentException: de.ocm.app.dev: Targeting S+ (version 10000 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.
at android.app.PendingIntent.checkFlags(PendingIntent.java:386)
at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:470)
at android.app.PendingIntent.getActivity(PendingIntent.java:456)
at android.app.PendingIntent.getActivity(PendingIntent.java:420)
at com.chuckerteam.chucker.internal.support.NotificationHelper$transactionsScreenIntent$2.invoke(SourceFile:47)
at com.chuckerteam.chucker.internal.support.NotificationHelper$transactionsScreenIntent$2.invoke(SourceFile:19)
at kotlin.SynchronizedLazyImpl.getValue(SourceFile:74)
at com.chuckerteam.chucker.internal.support.NotificationHelper.getTransactionsScreenIntent(Unknown Source:2)
at com.chuckerteam.chucker.internal.support.NotificationHelper.show(SourceFile:101)
at com.chuckerteam.chucker.api.ChuckerCollector.onRequestSent$com_github_ChuckerTeam_Chucker_library(SourceFile:65)
at com.chuckerteam.chucker.api.ChuckerInterceptor.intercept(SourceFile:111)
The text was updated successfully, but these errors were encountered: