Unity Firebase: TokenReceived doesnt get called

Hey;
i am trying to get a registration token from my client and store it later to my firebase database.
My code looks like this:

public class FCM : MonoBehaviour
{
    public TextMeshProUGUI text;
    // Start is called before the first frame update
    void Start()
    {
        FirebaseMessaging.TokenReceived += TokenReceived;
        FirebaseMessaging.MessageReceived += MessageReceived;
  
    }

    public void MessageReceived(object sender, MessageReceivedEventArgs e)
    {
        Debug.Log("Message received: " + e.Message);
    }

    public void TokenReceived(object sender, TokenReceivedEventArgs e)
    {
        Debug.Log("Token received: "+ e.Token);
        text.text = "received a token";
    }
}

the problem is that TokenReceived never gets called on my Android Device. I am pretty sure i did everything right with setting up firebasemessaging.

I would say, make sure you are using the most current Firebase SDK and just double check all your settings. It looks like there is some manifest stuff you might need to double check also.
https://firebase.google.com/docs/cloud-messaging/unity/client

did every step in the docu but it still doesnt work ;/


They appear to have fixed something with the tokens. Note that FCM doesn’t work in editor or desktop from appearances.