You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my Android version 12, when I get a notification on my app I get this error:
AndroidRuntime: FATAL EXCEPTION: Firebase-Messaging-Intent-Handle AndroidRuntime: Process: package_app, PID: 23149 AndroidRuntime: java.lang.IllegalArgumentException: package_app: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. AndroidRuntime: 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. AndroidRuntime: at android.app.PendingIntent.checkFlags(PendingIntent.java:404) AndroidRuntime: at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:487) AndroidRuntime: at android.app.PendingIntent.getActivity(PendingIntent.java:473) AndroidRuntime: at android.app.PendingIntent.getActivity(PendingIntent.java:437) AndroidRuntime: at com.gluonhq.helloandroid.PushFcmMessagingService.getNotification(PushFcmMessagingService.java:169) AndroidRuntime: at com.gluonhq.helloandroid.PushFcmMessagingService.sendNotification(PushFcmMessagingService.java:141) AndroidRuntime: at com.gluonhq.helloandroid.PushFcmMessagingService.onMessageReceived(PushFcmMessagingService.java:96) AndroidRuntime: at com.google.firebase.messaging.FirebaseMessagingService.dispatchMessage(com.google.firebase:firebase-messaging@@20.3.0:74) AndroidRuntime: at com.google.firebase.messaging.FirebaseMessagingService.passMessageIntentToSdk(com.google.firebase:firebase-messaging@@20.3.0:44) AndroidRuntime: at com.google.firebase.messaging.FirebaseMessagingService.handleMessageIntent(com.google.firebase:firebase-messaging@@20.3.0:27) AndroidRuntime: at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(com.google.firebase:firebase-messaging@@20.3.0:17) AndroidRuntime: at com.google.firebase.messaging.EnhancedIntentService.lambda$processIntent$0$EnhancedIntentService(com.google.firebase:firebase-messaging@@20.3.0:43) AndroidRuntime: at com.google.firebase.messaging.EnhancedIntentService$$Lambda$0.run(Unknown Source:6) AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) AndroidRuntime: at com.google.android.gms.common.util.concurrent.zza.run(Unknown Source:6) AndroidRuntime: at java.lang.Thread.run(Thread.java:1012)
How can I solve the problem?
The text was updated successfully, but these errors were encountered:
From my Android version 12, when I get a notification on my app I get this error:
AndroidRuntime: FATAL EXCEPTION: Firebase-Messaging-Intent-Handle AndroidRuntime: Process: package_app, PID: 23149 AndroidRuntime: java.lang.IllegalArgumentException: package_app: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. AndroidRuntime: 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. AndroidRuntime: at android.app.PendingIntent.checkFlags(PendingIntent.java:404) AndroidRuntime: at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:487) AndroidRuntime: at android.app.PendingIntent.getActivity(PendingIntent.java:473) AndroidRuntime: at android.app.PendingIntent.getActivity(PendingIntent.java:437) AndroidRuntime: at com.gluonhq.helloandroid.PushFcmMessagingService.getNotification(PushFcmMessagingService.java:169) AndroidRuntime: at com.gluonhq.helloandroid.PushFcmMessagingService.sendNotification(PushFcmMessagingService.java:141) AndroidRuntime: at com.gluonhq.helloandroid.PushFcmMessagingService.onMessageReceived(PushFcmMessagingService.java:96) AndroidRuntime: at com.google.firebase.messaging.FirebaseMessagingService.dispatchMessage(com.google.firebase:firebase-messaging@@20.3.0:74) AndroidRuntime: at com.google.firebase.messaging.FirebaseMessagingService.passMessageIntentToSdk(com.google.firebase:firebase-messaging@@20.3.0:44) AndroidRuntime: at com.google.firebase.messaging.FirebaseMessagingService.handleMessageIntent(com.google.firebase:firebase-messaging@@20.3.0:27) AndroidRuntime: at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(com.google.firebase:firebase-messaging@@20.3.0:17) AndroidRuntime: at com.google.firebase.messaging.EnhancedIntentService.lambda$processIntent$0$EnhancedIntentService(com.google.firebase:firebase-messaging@@20.3.0:43) AndroidRuntime: at com.google.firebase.messaging.EnhancedIntentService$$Lambda$0.run(Unknown Source:6) AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) AndroidRuntime: at com.google.android.gms.common.util.concurrent.zza.run(Unknown Source:6) AndroidRuntime: at java.lang.Thread.run(Thread.java:1012)
How can I solve the problem?
The text was updated successfully, but these errors were encountered: