title: Firestore Token retrieval failed: INVALID_SENDER
body: <p>I am not receiving any callback from interfaces such as <code>addOnSuccessListener</code>, <code>addOnFailureListener</code>,<code>addOnCompleteListener</code>.</p>
  
  <p>Dependencies:</p>
  
  <pre><code>        classpath 'com.google.gms:google-services:3.2.1'
  
          implementation 'com.google.firebase:firebase-firestore:16.0.0'
         // }
          apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code> firestore = FirebaseFirestore.getInstance(); // required for first time 
      FirebaseFirestoreSettings settings = new FirebaseFirestoreSettings.Builder()
              .setTimestampsInSnapshotsEnabled(true)
              .build();
      firestore.setFirestoreSettings(settings);
  
      final FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
      fab.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              Map&lt;String, Object&gt; user = new HashMap&lt;&gt;();
              user.put("Title", "Ada");
              user.put("category", "Lovelace");
              user.put("id", "123");
  
              firestore = FirebaseFirestore.getInstance();
              firestore.collection("quotes")
                      .add(user)
                      .addOnSuccessListener(new OnSuccessListener&lt;DocumentReference&gt;() {
                          @Override
                          public void onSuccess(DocumentReference documentReference) {
                              Log.d("quotes", "DocumentSnapshot added with ID: " + documentReference.getId());
                              Snackbar.make(fab, "DocumentSnapshot added with ID: " + documentReference.getId(), Snackbar.LENGTH_INDEFINITE).show();
                          }
                      })
                      .addOnFailureListener(new OnFailureListener() {
                          @Override
                          public void onFailure(@NonNull Exception e) {
                              Log.w("quotes", "Error adding document", e);
                              Snackbar.make(fab, "OnFailureListener: " + e, Snackbar.LENGTH_INDEFINITE).show();
                          }
                      })
                      .addOnCompleteListener(new OnCompleteListener&lt;DocumentReference&gt;() {
                          @Override
                          public void onComplete(@NonNull Task&lt;DocumentReference&gt; task) {
                              Snackbar.make(fab, "OnCompleteListener: " + task.isSuccessful(), Snackbar.LENGTH_INDEFINITE).show();
  
                          }
                      });
  
          }
      });
  </code></pre>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>LOGCAT</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <pre><code>E/FirebaseInstanceId: Token retrieval failed: INVALID_SENDER
  E/FirebaseInstanceId: Token retrieval failed: INVALID_SENDER
  E/FirebaseInstanceId: Token retrieval failed: INVALID_SENDER
  </code></pre>