[Solved] How to get firebase generated unique id [closed]


Check your MyFirebaseInstanceIDService class there will be a method onTokenRefresh(). You will get refreshedToken in this method like below:

public void onTokenRefresh() {
    // Get updated InstanceID token.
    String refreshedToken = FirebaseInstanceId.getInstance().getToken();

    // TODO: Implement this method to send any registration to your app's servers.
    sendRegistrationToServer(refreshedToken);
}

1

solved How to get firebase generated unique id [closed]