How to get the logged in firebase user with native code in android studio

I have an application in ionic 3 with angular, I am trying to integrate instana but the apis do not have for ionic, so in the android studio I am implementing it but when making the call to firebase I always have the firebase user null

public class MainActivity extends CordovaActivity {

  public FirebaseAuth mAuth;
  public void onCreate(Bundle savedInstanceState) {

    // enable Cordova apps to be started in the background
    Bundle extras = getIntent().getExtras();
    if (extras != null && extras.getBoolean("cdvStartInBackground", false)) {

    // Set by <content src="index.html" /> in config.xml

  public void onStart() {
      mAuth = FirebaseAuth.getInstance();
    FirebaseUser currentUser = mAuth.getCurrentUser();
    if (currentUser != null) {
      Log.i(TAG, "onstart: " + currentUser);
      Log.i(TAG, "onstart: null user");

  private void reload() { }