Firebase Messaging issue in Android 12 · Issue #3115 · firebase/firebase-android-sdk

Ask questions Research chat →

https://github.com/firebase/firebase-android-sdk/issues/3115 · scraped

javascript

Attachments

Scraped Content

— 127 words · 2026-02-14 03:01:10 UTC ·

Excerpt

[REQUIRED] Step 2: Describe your environment Android Studio version: 2020.3.1 Patch 3 (Arctic Fox) Firebase Component: firebase-messaging Component version: 23.0.0 [REQUIRED] Step 3: Describe the problem I got many crashes from firebase crashytics. Fatal Exception: java.lang.IllegalArgumentException: com.mcassemblies.AndroidToolbox: 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. at android.app.PendingIntent.checkFlags(PendingIntent.java:375) at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:458) at android.app.PendingIntent.getActivity(PendingIntent.java:444) at android.app.PendingIntent.getActivity(PendingIntent.java:408) at com.google.firebase.messaging.CommonNotificationBuilder.cr
[REQUIRED] Step 2: Describe your environment Android Studio version: 2020.3.1 Patch 3 (Arctic Fox) Firebase Component: firebase-messaging Component version: 23.0.0 [REQUIRED] Step 3: Describe the problem I got many crashes from firebase crashytics. Fatal Exception: java.lang.IllegalArgumentException: com.mcassemblies.AndroidToolbox: 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. at android.app.PendingIntent.checkFlags(PendingIntent.java:375) at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:458) at android.app.PendingIntent.getActivity(PendingIntent.java:444) at android.app.PendingIntent.getActivity(PendingIntent.java:408) at com.google.firebase.messaging.CommonNotificationBuilder.createContentIntent(CommonNotificationBuilder.java:125) at com.google.firebase.messaging.CommonNotificationBuilder.createNotificationInfo(CommonNotificationBuilder.java:27) at com.google.firebase.messaging.CommonNotificationBuilder.createNotificationInfo(CommonNotificationBuilder.java:9) at com.google.firebase.messaging.DisplayNotification.handleNotification(DisplayNotification.java:27) at com.google.firebase.messaging.FirebaseMessagingService.dispatchMessage(FirebaseMessagingService.java:65) at com.google.firebase.messaging.FirebaseMessagingService.passMessageIntentToSdk(FirebaseMessagingService.java:44) at com.google.firebase.messaging.FirebaseMessagingService.handleMessageIntent(FirebaseMessagingService.java:27) at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(FirebaseMessagingService.java:17) at com.google.firebase.messaging.EnhancedIntentService.lambda$processIntent$0$EnhancedIntentService(EnhancedIntentService.java:43) at com.google.firebase.messaging.EnhancedIntentService$$Lambda$0.run(EnhancedIntentService.java:2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at com.google.android.gms.common.util.concurrent.zza.run(zza.java:6) at java.lang.Thread.run(Thread.java:920) How can I fix this? Thank you.

Visibility

Visible to everyone

Reading Status

Related Bookmarks

My Note


Saved!

Annotations

Export as Markdown
+ Annotate selection

Add Annotation