jgilfelt / chuck

An in-app HTTP inspector for Android OkHttp clients
Apache License 2.0
4.68k stars 452 forks source link

Android 12 issue #101

Open IhorKlimov opened 3 years ago

IhorKlimov commented 3 years ago

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

vbuberen commented 3 years ago

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.

Nesh-Brindha commented 2 years ago

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

vbuberen commented 2 years ago

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.

Nesh-Brindha commented 2 years ago

@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 ?

cortinico commented 2 years ago

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.