Home > Back-end >  PendingIntent.FLAG_UPDATE_CURRENT error on Android 12
PendingIntent.FLAG_UPDATE_CURRENT error on Android 12

Time:09-26

In my app I am planing to set up a alarm on each day at a specific time . For that I am using Alarm Manager (See Code below) this is working fine on android devices below 12 but not on 12 and above

Error on Firebase Crashlyics

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

solution image

  • Related