QuickBlox / quickblox-android-sdk

QuickBlox Android SDK includes code snippets with main use cases and framework JAR library.
BSD 3-Clause "New" or "Revised" License
416 stars 697 forks source link

Not Working push notifications with Latest Firebase bom #781

Closed sagarehs closed 1 year ago

sagarehs commented 2 years ago

QuickBlox SDK Version: 3.9.2

PushNotification Type in Manifest: FCM

Actual behavior Application crashed.

Firebase library update in my Project "com.google.firebase:firebase-bom:26.8.0" to "com.google.firebase:firebase-bom:29.0.0"

Application Working fine with "com.google.firebase:firebase-bom:26.8.0"

Caused by java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId; at com.quickblox.messages.services.a.a.(:3) at com.quickblox.messages.services.a.b.a(:2) at com.quickblox.messages.services.SubscribeService.a(:15) at com.quickblox.messages.services.SubscribeService.a(:1) at com.quickblox.messages.services.SubscribeService.e(:12) at com.quickblox.messages.services.SubscribeService.b(:18) at com.quickblox.messages.services.SubscribeService.onHandleWork(:50) at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:396) at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:387) at android.os.AsyncTask$3.call(AsyncTask.java:394) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923)

ghost commented 2 years ago

@sagarehs Hello,

This is Nikolay from QuickBlox support.

Please try updating the SDK to the latest version: https://github.com/QuickBlox/quickblox-android-sdk-releases/releases/tag/3.9.15

If the issue persists, please try the solutions provided in the following threads: https://github.com/mixpanel/mixpanel-android/issues/744 https://stackoverflow.com/questions/50608169/java-lang-noclassdeffounderror-failed-resolution-of-lcom-google-firebase-fireb

teamaligness commented 2 years ago

it's still happen in latest version could you fix it?

Thank you

vdovbnya-qb commented 1 year ago

HI @teamaligness ,

You can try to solve this issue by adding the firebase-iid dependency: implementation 'com.google.firebase:firebase-iid'