chuck icon indicating copy to clipboard operation
chuck copied to clipboard

Android 12 issue

Open IhorKlimov opened this issue 3 years ago • 5 comments

If your app targets Android 12, you must specify the mutability of each PendingIntent object that your app creates. This additional requirement improves your app's security.

https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability

Caused by: NotificationHelper#show() method

IhorKlimov avatar Jun 10 '21 10:06 IhorKlimov

Hey. It seems that this library has no support, so there will be no updates or fixes to it. I would suggest you to try out a maintained fork of it: https://github.com/ChuckerTeam/chucker As one of its maintainers I can tell you that in latest snapshot version we already have this issue with flags resolved. Also, we will do a patch release next week with this change to let all users have Android 12 support.

vbuberen avatar Jun 27 '21 08:06 vbuberen

Thanks @vbuberen for the response. Could you please let me know the version of the library which has Android 12 fix

Nesh-Brindha avatar Jul 28 '21 15:07 Nesh-Brindha

If you don't use Throwable reporting you can use 3.5.0. Currently we have some issues with Maven Central publishing, so 3.5.2 with fix for Throwables is a little delayed.

vbuberen avatar Jul 29 '21 12:07 vbuberen

@vbuberen Thank you so much for your response. I am using Java code base i tried implement https://github.com/ChuckerTeam/chucker this library as you mentioned. Even after adding the dependencies, ChuckerInterceptor is not resolvable. i followed all the provided steps. Is there any specific link for Java project ? or am i missing something ?

Nesh-Brindha avatar Jul 29 '21 13:07 Nesh-Brindha

Even after adding the dependencies, ChuckerInterceptor is not resolvable. i followed all the provided steps. Is there any specific link for Java project ? or am i missing something ?

Please open another issue inside the Chucker repository, provide your build.gradle file and how you applied the dependency.

cortinico avatar Jul 29 '21 19:07 cortinico