Hi.
I do not know if due to the update of the Firebase Cloud Messaging API or the B4A updates, I get an error when connecting to it. Specifically there is a problem with the SubscribeTopic(topicName As String) method of FirebaseNotifications library.
.
I use B4A v7.80 and I have already updated the FirebaseNotifications library to version 1.21.
My intention is to use messaging and notifications.
And also FirebaseAuth fails me.
It shows me
Thank you.
I do not know if due to the update of the Firebase Cloud Messaging API or the B4A updates, I get an error when connecting to it. Specifically there is a problem with the SubscribeTopic(topicName As String) method of FirebaseNotifications library.
.
B4X:
firebasemessaging_subscribetotopics (java line: 184)
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference
at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)
at xerp.xerpchat.firebasemessaging._subscribetotopics(firebasemessaging.java:184)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
--------- beginning of crash
I use B4A v7.80 and I have already updated the FirebaseNotifications library to version 1.21.
My intention is to use messaging and notifications.
And also FirebaseAuth fails me.
It shows me
B4X:
"Object reference not set as an instance of an object".
Thank you.
Last edited: