Cadenzo Active Member Licensed User Longtime User Jun 12, 2018 #1 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/StringLcom/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?
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/StringLcom/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 Jun 12, 2018 #3 Check if you have the newest version installed of both https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.59340/#post-592335 https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.59340/#post-591400 Make sure to replace the files in your INTERNAL Library folder (Library inside installationdir) Upvote 0
Check if you have the newest version installed of both https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.59340/#post-592335 https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.59340/#post-591400 Make sure to replace the files in your INTERNAL Library folder (Library inside installationdir)
Semen Matusovskiy Well-Known Member Licensed User Jun 12, 2018 #4 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
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"
gerardguerin Member Licensed User Longtime User Jun 12, 2018 #5 I have the same problem, B4A 8.30 , FirebaseNotifications v1.21 java.lang.NoSuchMethodError: No virtual method subscribeToTopic(Ljava/lang/StringLcom/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
I have the same problem, B4A 8.30 , FirebaseNotifications v1.21 java.lang.NoSuchMethodError: No virtual method subscribeToTopic(Ljava/lang/StringLcom/google/android/gms/tasks/Task; in class Lcom/google/firebase/messaging/FirebaseMessaging; or its super classes (declaration of 'com.google.firebase.messaging.FirebaseMessaging' ...
Erel B4X founder Staff member Licensed User Longtime User Jun 13, 2018 #6 You need to update firebase-messaging in B4A Sdk Manager. Upvote 0
Semen Matusovskiy Well-Known Member Licensed User Jun 13, 2018 #7 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
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.
Cadenzo Active Member Licensed User Longtime User Jun 13, 2018 #8 Yes, after updating firebase-messaging it works Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 14, 2018 #9 Semen Matusovskiy said: 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. Click to expand... Please start a new thread for your question or issue. Upvote 0
Semen Matusovskiy said: 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. Click to expand... Please start a new thread for your question or issue.