Hi all,
I've got the same problem with an App I'm developing, and also one which I did specifically to try and resolve this issue I've got. In short, I can't get Firebase to get a TokenID or receive a message sent to a topic.
I get no errors when compiling and the App loads on the test devices. I can get the FCMConnected Sub to fire and fm.SubscribeToTopic("ios_general") doesn't return any errors.
The problem is I just can't seem to get a message to come through. (My Android version is working perfectly)
Only hint that I can see something is wrong, is that this code always returns a blank string:
And I saw on another thread that this could mean that there is something wrong in the configuration and this is why I created a 2nd app and went through Erel's tutorials again. But it is the same result.
Is there any further logging I can get that can tell me where I've wrong? I've gone through the tutorials (and searched) for many hours but I can't seem to find the problem.
Thanks in advance.
I've got the same problem with an App I'm developing, and also one which I did specifically to try and resolve this issue I've got. In short, I can't get Firebase to get a TokenID or receive a message sent to a topic.
I get no errors when compiling and the App loads on the test devices. I can get the FCMConnected Sub to fire and fm.SubscribeToTopic("ios_general") doesn't return any errors.
The problem is I just can't seem to get a message to come through. (My Android version is working perfectly)
Only hint that I can see something is wrong, is that this code always returns a blank string:
B4X:
Private Sub GetToken As String
Dim no As NativeObject
Dim token As NativeObject = no.Initialize("FIRInstanceID").RunMethod("instanceID", Null).RunMethod("token", Null)
If token.IsInitialized Then Return token.AsString Else Return ""
End Sub
And I saw on another thread that this could mean that there is something wrong in the configuration and this is why I created a 2nd app and went through Erel's tutorials again. But it is the same result.
Is there any further logging I can get that can tell me where I've wrong? I've gone through the tutorials (and searched) for many hours but I can't seem to find the problem.
Thanks in advance.