Hi There
I am using the code below from a long time. I just came back to it after few months and I noticed that I am getting the error below
The error is caused by
The actual code is here
I tried using the exact same package name and the exact same json file in a sample project, but I don't see the issue.
Does anyone know what would cause the above?
Thanks in advance.
iCAB
I am using the code below from a long time. I just came back to it after few months and I noticed that I am getting the error below
B4X:
(IllegalArgumentException) java.lang.IllegalArgumentException: Please set your project ID. A valid Firebase project ID is required to communicate with Firebase server APIs: It identifies your project with Google.
The error is caused by
B4X:
Dim cTokenID As String = fm.Token
The actual code is here
B4X:
Public Sub SubscribeToTopics2( lstTopics As List)
If Not(fm_IsInitialized) Then
Return
End If
Dim i As Int
For i = 0 To lstTopics.Size - 1
fm.SubscribeToTopic(lstTopics.Get(i))
Next
'fm.SubscribeToTopic("general")
#if B4A
Try
Dim cTokenID As String = fm.Token 'This line generates the error
LogColor("Passed",Colors.Blue)
Catch
LogColor("Crashed",Colors.Blue)
End Try
#end if
End Sub
I tried using the exact same package name and the exact same json file in a sample project, but I don't see the issue.
Does anyone know what would cause the above?
Thanks in advance.
iCAB