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:
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?
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?