title: Firestore operations (add(), set()) not working
body: <p>I am trying to add user details to <strong>Firestore db</strong>, but can't write data in it.</p>
  
  <p>Actually none of the listeners are triggered neither <code>onSuccess()</code> nor <code>onFailure()</code>.</p>
  
  <p>here is my code.</p>
  
  <pre><code>Map&lt;String,Object&gt; userlol = new HashMap&lt;&gt;();
  userlol.put("name",name);
  userlol.put("email",email);
  userlol.put("uid",currentUser.getUid());
  Log.d(TAG, "we are here");
  CollectionReference dc = db.collection("users");
  DocumentReference dd = dc.document(currentUser.getUid());
  dd.set(userlol)
          .addOnSuccessListener(new OnSuccessListener&lt;Void&gt;() {
              @Override
              public void onSuccess(Void aVoid) {
                  Toast.makeText(SignupActivity.this, "User Added" ,
                          Toast.LENGTH_SHORT).show();
                  Log.d(TAG,"User added to database");
              }
          })
          .addOnFailureListener(new OnFailureListener() {
              @Override
              public void onFailure(@NonNull Exception e) {
                  Toast.makeText(SignupActivity.this, "ERROR" +e.toString(),
                          Toast.LENGTH_SHORT).show();
                  Log.d(TAG, e.toString());
              }
          });
  </code></pre>
  
  <p>There is no toast nor the Log in my logcat.I can see </p>
  
  <blockquote>
    <p>D/logging: we are here</p>
  </blockquote>
  
  <p>This log and logs after this method.</p>
  
  <p>There is no issue with rules as onFailure() is also not working.</p>
  
  <p>I have searched every possible thing but nothing worked.</p>