Android Question Firebase user token issue after latest update of B4A

tufanv

Expert
Licensed User
Longtime User
Hello,

For years, my app could get customers' firebase messaging tokens successfully. I don't know why but I noticed the user token is empty now. The only change I made lately was to update my b4a which also updated firebase notifications library so there can be a problem there. The way I am getting the token is like this and it was working before the update:

B4X:
Public Sub SubscribeToTopics
    fm.SubscribeToTopic("test") 'you can subscribe to more topics
    LogColor(fm.Token,Colors.Red)
    Main.usertoken=fm.token
    CallSubDelayed(Main,"tokenkaydet")
End Sub

The tokenkaydet sub uses httpjopb to attach the token to userid on my database but fm.token is always empty. Did i miss a warning when updating the b4a to latest? maybe something changed?
 

DonManfred

Expert
Licensed User
Longtime User
can you explain better what have you done?
B4X:
Public Sub SubscribeToTopics
    Do While fm.Token = "" ' Add this line
        Sleep(250)         ' Add this line
    Loop                   ' Add this line
    '[..]
 
Upvote 0
Top