Get Firebase App ID

0

I am developing an Android app together with Firebase. And in the Firebase console in the Project Settings section I get an App ID. My question is: how can I get that ID but from my Android application? Thank you.

    
asked by Jose Rosales 24.03.2018 в 05:31
source

1 answer

0

I already did it, I did it like this:

// declaro la variable
public static FirebaseApp fbApp;
...
// obtengo la instancia
fbApp = FirebaseApp.getInstance();
...
//asigno el valor 
lblClave.setText(fbApp.getOptions().getApplicationId());
    
answered by 24.03.2018 в 05:57