Martin Vidic Martin Vidic - 1 year ago 183
Android Question

Invalid Firebase Registration Token

Im trying to send push notifications with firebase, and i actually receive my token, but i cannot sent a simple message from the firebase console.

This is what my token looks like:


i added this to my manifest file:

<action android:name=""/>

And this here its from my firebaseInstanceIdService java file

public class FirebaseInstanceIDService extends FirebaseInstanceIdService{

public void onTokenRefresh() {

MainActivity.tokenMain = FirebaseInstanceId.getInstance().getToken();
Log.d("test", FirebaseInstanceId.getInstance().getToken());

I get the token, but when i try to use it in the console, i get

Answer Source

The issue was that my token was saved in varChar 100, which was simply too short. (token was cut off in the middle)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download