tirkarthi/NotificationDictionary

Crash in Android 12 regarding intent flag

Closed this issue · 0 comments

https://sentry.io/organizations/karthikeyan-0g/issues/2659682474/events/edf83d02d69a44018a68992d68571413/?project=5955342

Unable to start activity ComponentInfo{com.xtreak.notificationdictionary/com.xtreak.notificationdictionary.ProcessTextActivity}: java.lang.IllegalArgumentException: com.xtreak.notificationdictionary: 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.

Stack overflow : https://stackoverflow.com/questions/67045607/how-to-resolve-missing-pendingintent-mutability-flag-lint-warning-in-android-a