I have already found similar answers for this but nothing work with my problem as I am getting this exception as-
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.
But this contains a condition as - I am not using any PendingIntent in my application . So its obvious that I cannot change the format of using it. I have these firebase dependencies-
implementation 'androidx.work:work-runtime-ktx:2.7.1'
implementation 'com.google.firebase:firebase-core:21.0.0'
implementation 'com.google.firebase:firebase-messaging:23.0.0'
implementation 'com.google.firebase:firebase-iid:21.1.0' // add this
Can anyone please help!! what should I do for Android 12 simply API calling Using retrofit and observable and observers in presenter layer