Closed Theamansinghrajput closed 1 year ago
Maybe related to this #763 Try this solution #765
@ollm Now foreground alert is visible but click is still crashing the app. Check the attachment...
@Theamansinghrajput Can you put the stack trace from Firebase Crashlytics or Android Studio Logcat? to see what produces the crash.
@ollm
Non-fatal Exception: java.lang.IllegalArgumentException: com.labs.networks: 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.getBroadcastAsUser(PendingIntent.java:651) at android.app.PendingIntent.getBroadcast(PendingIntent.java:638) at org.apache.cordova.firebase.FirebasePluginMessagingService.sendMessage(FirebasePluginMessagingService.java:240) at org.apache.cordova.firebase.FirebasePluginMessagingService.onMessageReceived(FirebasePluginMessagingService.java:203) at com.google.firebase.messaging.FirebaseMessagingService.dispatchMessage(com.google.firebase:firebase-messaging@@23.0.0:12) at com.google.firebase.messaging.FirebaseMessagingService.passMessageIntentToSdk(com.google.firebase:firebase-messaging@@23.0.0:8) at com.google.firebase.messaging.FirebaseMessagingService.handleMessageIntent(com.google.firebase:firebase-messaging@@23.0.0:3) at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(com.google.firebase:firebase-messaging@@23.0.0:3) at com.google.firebase.messaging.EnhancedIntentService.lambda$processIntent$0$com-google-firebase-messaging-EnhancedIntentService(com.google.firebase:firebase-messaging@@23.0.0:1) at com.google.firebase.messaging.EnhancedIntentService$$ExternalSyntheticLambda1.run(:6) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at com.google.android.gms.common.util.concurrent.zza.run(com.google.android.gms:play-services-basement@@18.0.0:2) at java.lang.Thread.run(Thread.java:1012)
Are you using the latest version of the plugin? this bug is the same as this #746 and it is fixed in the latest versions 14.2.0+
Not fixed yet i am using updated plugin... @ollm
issue is still on foreground click. Background notification click is working fine but foreground notification click is crashing the application. @ollm @dpa99c
Don't you have in Firebase others errors?
@ollm After testing the main issue with launch-mode, plugin is not working on standard launch mode, this is working on singletask, singletop on both foreground and background.
You should talk to @dpa99c, I don't have enough knowledge about the plugin to be able to help you find the cause of the error, sorry.
Should be fixed in cordova-plugin-firebasex@15.0.0
which has just been released to npm
Bug report
CHECKLIST
[x] I have read the issue reporting guidelines
[x] I confirm this is a suspected bug or issue that will affect other users
[x] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
[x] I have read the documentation thoroughly and it does not help solve my issue.
[x] I have checked that no similar issues (open or closed) already exist.
Current behavior:
Expected behavior:
Steps to reproduce:
Screenshots
Environment information
cordova -v
cordova platform ls
cordova plugin ls
sw_vers
winver
Runtime issue
Android build issue:
node -v
ls platforms/android/.gradle
android:targetSdkVersion
inAndroidManifest.xml
sdkmanager --list | sed -e '/Available Packages/q'
iOS build issue:
node -v
Related code:
Console output
console output
``` // Paste any relevant JS/native console output here ```**Other information:**