title: How to pass parameters to the cloud function of firebase
body: <p>I am using Android.</p>
  
  <p>After the user logs in to firebase, how can I retrieve the user information in the firestore according to the account? </p>
  
  <p>My function is in the cloud function of firebase.
  My code as follows:    </p>
  
  <pre><code>mFunctions.getHttpsCallable("getInfo").call()
              .continueWith(new Continuation&lt;HttpsCallableResult, Object&gt;() {
                  @Override
                  public String then(@NonNull Task&lt;HttpsCallableResult&gt; task) throws Exception {
  
                      Log.d("-----TEST-----", "BEGIN000");
                      Object result =  task.getResult().getData();
                      Log.d("-----TEST-----", "SUCCESS");
                      self_tel.setText((Integer) result);
                      return (String) result;
                  }
              }).addOnCompleteListener(new OnCompleteListener&lt;Object&gt;() {
          @Override
          public void onComplete(@NonNull Task&lt;Object&gt; task) {
              if (!task.isSuccessful()) {
                  Exception e = task.getException();
                  if (e instanceof FirebaseFunctionsException) {
                      FirebaseFunctionsException ffe = (FirebaseFunctionsException) e;
                      FirebaseFunctionsException.Code code = ffe.getCode();
                      Object details = ffe.getDetails();
                  }
  
                  // [START_EXCLUDE]
                  Log.w("test", "addMessage:onFailure", e);
                  //showSnackbar("An error occurred.");
                  return;
                  // [END_EXCLUDE]
              }
              String result = (String) task.getResult();
              Log.d("-----TEST-----", "SUCCESS1");
  
          }
      });
  </code></pre>