1-According to google
so don't expect that your token will change frequently
I use FirebaseMessaging service Create to get the token every time the application starts
B4X:
Sub Service_Create
fm.Initialize("fm")
fmt=fm.Token
End Sub
2-where you put this code?