Android Question FirebaseMessaging

Cadenzo

Active Member
Licensed User
Longtime User
Using FirebaseMessaging with B4A 8.3 (not with B4A 8.0) I get an error with the method .SubscribeToTopic

(java.lang.NoSuchMethodError: No virtual method subscribeToTopic(Ljava/lang/String;)Lcom/google/android/gms/tasks/Task; in class Lcom/google/firebase/messaging/FirebaseMessaging; or its super classes (declaration of 'com.google.firebase.messaging.FirebaseMessaging' appears in /data/app/com.heikohinz.testmsg-K8oy8m6Y1lXPbzfE2jR46A==/base.apk)

Any ideas what I am doing wrong?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
B4A 8.30 includes FirebaseNotifications v1.21 instead of 1.10.
I copied jar & xml from B4A 8.00 and an error was disappeared. Of course, this is not a solution, because v.1.21 "Fixes a compatibility issue with latest version of Firebase SDK"
 
Upvote 0

gerardguerin

Member
Licensed User
Longtime User
I have the same problem, B4A 8.30 , FirebaseNotifications v1.21

java.lang.NoSuchMethodError: No virtual method subscribeToTopic(Ljava/lang/String;)Lcom/google/android/gms/tasks/Task; in class Lcom/google/firebase/messaging/FirebaseMessaging; or its super classes (declaration of 'com.google.firebase.messaging.FirebaseMessaging' ...
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Maven is latest com.google.firebase\:firebase-messaging=17.0.0

To be sure, I deleted b4a_remote folder and reinstall all recommended.

jar from 8.00 (unlike 8.30) works fine.
 
Upvote 0
Top