Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No pushNotification and badge counter on Android #170

Open
websystemtechnology opened this issue Mar 15, 2023 · 0 comments
Open

No pushNotification and badge counter on Android #170

websystemtechnology opened this issue Mar 15, 2023 · 0 comments

Comments

@websystemtechnology
Copy link

websystemtechnology commented Mar 15, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant