[BUG] Backendless.messaging.registerDevice crash app

I want push notification to my application by have some issue:

When i register token app crash:
Backendless.messaging.registerDevice([‘default’]);

My consolelog:
E/AndroidRuntime(15257): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId;
E/AndroidRuntime(15257): at com.backendless.push.FCMRegistration$1.onComplete(FCMRegistration.java:51)
E/AndroidRuntime(15257): at com.google.android.gms.tasks.zzj.run(Unknown Source:4)
E/AndroidRuntime(15257): at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime(15257): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(15257): at android.os.Looper.loop(Looper.java:246)
E/AndroidRuntime(15257): at android.app.ActivityThread.main(ActivityThread.java:8506)
E/AndroidRuntime(15257): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(15257): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
E/AndroidRuntime(15257): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1139)
E/AndroidRuntime(15257): Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.google.firebase.iid.FirebaseInstanceId” on path: DexPathList[[zip file “/data/app/~~UicoZlFzgnHWNMcqMm7-bw==/com.bubbly.realtor-nc0Lh5Ql16xeIu_mB-C7sg==/base.apk”],nativeLibraryDirectories=[/data/app/~~UicoZlFzgnHWNMcqMm7-bw==/com.bubbly.realtor-nc0Lh5Ql16xeIu_mB-C7sg==/lib/arm64, /data/app/~~UicoZlFzgnHWNMcqMm7-bw==/com.bubbly.realtor-nc0Lh5Ql16xeIu_mB-C7sg==/base.apk!/lib/arm64-v8a, /system/lib64]]
E/AndroidRuntime(15257): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
E/AndroidRuntime(15257): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime(15257): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime(15257): … 9 more
I/Process (15257): Sending signal. PID: 15257 SIG: 9

1 Like

Hello @Minh_Tuan_Vu,

thanks for reporting this issue!
I have created an internal ticket (BKNDLSS-25434), soon someone from our team will take a look and help you.

Regards,
Stanislaw

ok tks @stanislaw.grin

Hi @Minh_Tuan_Vu

Please sure you have configured Firebase Cloud Messaging for your Backendless application. You can find detailed instructions here:
https://backendless.com/docs/flutter/push_push_notification_setup_androi.html

Best Regards,
Maksym

1 Like

Hi Backendless,

We are seeing very similar behavior in our Android app, which has been running on BL for over 4 years. It has been working fine, but now we get the same crash with “Failed resolution of FirebaseInstanceId” in com.Backendless.push.FCMRegistration (line #51). We are using Backendless 6.3.4.

This happens when Backendless.Messaging.registerDevice() is called. There is no Backendless handleFault() message - just a hard crash. It looks like this started happening over a month ago. We are trying different versions of the firebase dependencies, but so far no luck.

Please let us know if there is any news on this issue.

Thanks in advance,

Rick Cataldo

PS: I have posted this reply also to the topic - Push Notifications Mission fail, error on Firebase Instance Id

Hello @rick-cataldo

I’ve already answered your question here

Yes, thank you for following-up, and I would again like to thank @Marina.Kan for pointing us to the correct solution to this issue here.